django related_name abstract class

50

# use '%(app_label)' and '%(class)'
owner = models.ForeignKey(
  TaskUser,
  related_name="%(app_label)s_%(class)s_ownership",
)

Comments

Submit
0 Comments