add gallery relation

This commit is contained in:
littlewolf 2019-11-07 11:49:59 +03:00
parent 0b68cb3420
commit 22ac3d3046

View File

@ -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: