add gallery relation
This commit is contained in:
parent
0b68cb3420
commit
22ac3d3046
|
|
@ -109,6 +109,8 @@ class City(models.Model):
|
|||
map_ref = models.CharField(max_length=255, blank=True, null=True)
|
||||
situation = models.CharField(max_length=255, blank=True, null=True)
|
||||
|
||||
gallery = models.ManyToManyField('gallery.Image', through='location.CityGallery')
|
||||
|
||||
objects = CityQuerySet.as_manager()
|
||||
|
||||
class Meta:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user