Is it possible to create snake case `related_name` from class interpolation in Django related fields?

后端 未结 0 453
余生分开走
余生分开走 2021-02-12 17:44

Django allows us to use \'%(class)s\' to automatically create related name from mixins. But when I have a ClassName I\'d rather access it using class_name

相关标签:
回答
  • 消灭零回复
提交回复
热议问题