Add migrations

This commit is contained in:
littlewolf 2019-11-08 09:51:30 +03:00
parent 1c8e08fab1
commit ec07ba74da
3 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.4 on 2019-11-07 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('location', '0024_city_gallery'),
]
operations = [
migrations.AlterField(
model_name='city',
name='gallery',
field=models.ManyToManyField(blank=True, through='location.CityGallery', to='gallery.Image'),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.4 on 2019-11-07 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('location', '0025_auto_20191107_2005'),
]
operations = [
migrations.AlterField(
model_name='city',
name='gallery',
field=models.ManyToManyField(blank=True, null=True, through='location.CityGallery', to='gallery.Image'),
),
]

View File

@ -109,7 +109,7 @@ 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', blank=True, null=True)
gallery = models.ManyToManyField('gallery.Image', through='location.CityGallery', blank=True)
objects = CityQuerySet.as_manager()