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

后端 未结 0 1220
滥情空心
滥情空心 2021-02-12 17:17

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

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