related names added to itfprofiles.models.theatregroup
This commit is contained in:
parent
64a1d18d9b
commit
d03de8d6f9
|
@ -248,7 +248,7 @@ class TheatreGroup(ItfModel):
|
|||
added_by = models.ForeignKey(User)
|
||||
name = models.CharField(max_length=255, db_index=True) # name + location is unique
|
||||
email = models.EmailField(blank=True, null=True)
|
||||
location = models.ForeignKey(Location, blank=True, null=True)
|
||||
location = models.ForeignKey(Location, blank=True, null=True, related_name="theatregroup_location")
|
||||
tel = models.IntegerField(blank=True, null=True)
|
||||
nature_of_work = models.ManyToManyField("GroupOccupation", blank=True, null=True, through="GroupGroupOccupation")
|
||||
languages = models.ManyToManyField("Language", blank=True, null=True)
|
||||
|
@ -257,7 +257,7 @@ class TheatreGroup(ItfModel):
|
|||
awards = models.ManyToManyField("Award", blank=True, null=True)
|
||||
website = models.URLField(blank=True, verify_exists=False)
|
||||
# resources = models.ManyToManyField("Resource", blank=True, null=True)
|
||||
locations = models.ManyToManyField("Location", blank=True, null=True)
|
||||
locations = models.ManyToManyField("Location", blank=True, null=True, related_name="theatregroup_locations")
|
||||
|
||||
about = models.TextField(blank=True, null=True)
|
||||
nature_of_work = models.CharField(max_length=255)
|
||||
|
|
Loading…
Reference in New Issue
Block a user