Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django related_name abstract class

# use '%(app_label)' and '%(class)'
owner = models.ForeignKey(
  TaskUser,
  related_name="%(app_label)s_%(class)s_ownership",
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #abstract #class
ADD COMMENT
Topic
Name
5+7 =