class Migration(migrations.Migration): dependencies = [ ('frontend', '0002_auto_20200203_1540'), ] operations = [ migrations.CreateModel( name='Servicios', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('background_image', models.ImageField( storage=storage_backends.PublicMediaStorage(), upload_to='')), ], options={ 'verbose_name': 'Configuración de servicios', 'verbose_name_plural': 'Configuración de servicios', }, ), migrations.AlterModelOptions( name='banner', options={ 'verbose_name': 'Configuración de banner', 'verbose_name_plural': 'Configuración de banner' }, ), ]
class Migration(migrations.Migration): dependencies = [ ('main', '0002_auto_20181201_1754'), ] operations = [ migrations.AddField( model_name='user', name='is_deleted', field=models.BooleanField(default=False), ), migrations.AlterField( model_name='user', name='email', field=models.EmailField(blank=True, default=None, max_length=254, unique=True, verbose_name='email'), ), migrations.AlterField( model_name='user', name='phone', field=models.CharField(blank=True, default=None, max_length=20, unique=True, verbose_name='phone number'), ), migrations.AlterField( model_name='user', name='photo', field=models.FileField(blank=True, null=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('header', models.CharField(default='MAZ Comunicación', max_length=100)), ('sub_header', models.CharField(default='Estrategia y Publicidad', max_length=200)), ('image', models.ImageField( storage=storage_backends.PublicMediaStorage(), upload_to='')), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): dependencies = [ ('periodicos', '0008_auto_20200203_1450'), ] operations = [ migrations.CreateModel( name='Configuracion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.PositiveSmallIntegerField(choices=[ (1, 'Portadas Coahuila'), (2, 'Portadas México'), (3, 'Portadas Nuevo León') ], default=1)), ('image', models.ImageField( blank=True, storage=storage_backends.PublicMediaStorage(), upload_to='')), ], ), ]
class Event(models.Model): event_name = models.CharField(max_length=36) poster = models.ImageField(storage=storage_backends.PublicMediaStorage()) slug = models.SlugField(null=False, unique=True) user = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return str(self.event_name)
class SubServicio(models.Model): title = models.CharField(max_length=100) description = models.TextField() slug = models.SlugField() image = models.ImageField(storage=storage_backends.PublicMediaStorage()) parent = models.ForeignKey(Servicio, on_delete=models.CASCADE) def __str__(self): return self.title
class Servicio(models.Model): title = models.CharField(max_length=100) description = models.TextField() image = models.ImageField(storage=storage_backends.PublicMediaStorage(), blank=True) slug = models.SlugField() def __str__(self): return self.title
class About(models.Model): description = models.TextField() banner = models.ImageField(storage=storage_backends.PublicMediaStorage(), blank=True) def __str__(self): return "Acerca de MAZ" class Meta: verbose_name = "Acerca de MAZ" verbose_name_plural = "Acerca de MAZ"
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='post', options={'ordering': ['-created_on']}, ), migrations.AddField( model_name='post', name='content', field=models.TextField(default=''), preserve_default=False, ), migrations.AddField( model_name='post', name='created_on', field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='post', name='featured_image', field=models.ImageField( null=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), migrations.AddField( model_name='post', name='status', field=models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')], default=0), ), migrations.AddField( model_name='post', name='updated_on', field=models.DateTimeField(auto_now=True), ), migrations.AlterField( model_name='post', name='slug', field=models.SlugField(max_length=200, unique=True), ), migrations.AlterField( model_name='post', name='title', field=models.CharField(max_length=200, unique=True), ), ]
class Photo(models.Model): imageId = models.CharField(max_length=36, default=None, blank=True, null=True) image = models.ImageField(storage=storage_backends.PublicMediaStorage()) event = models.ForeignKey(Event, on_delete=models.CASCADE) user = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return self.imageId
class Banner(models.Model): # header = models.CharField(max_length=100, default="MAZ Comunicación") sub_header = models.CharField(max_length=200, default="Estrategia y Publicidad") image = models.ImageField(storage=storage_backends.PublicMediaStorage()) def __str__(self): return "Configuración de banner" class Meta: verbose_name = "Configuración de banner" verbose_name_plural = "Configuración de banner"
class Configuracion(models.Model): title = models.PositiveSmallIntegerField(choices=CATEGORY, default=PORTADAS) image = models.ImageField(storage=storage_backends.PublicMediaStorage(), blank=True) def __str__(self): # return str(CATEGORY[self.title.imag][1]) return list( filter(lambda category: category[0] == self.title, CATEGORY))[0][1] class Meta: verbose_name_plural = "Configuraciones"
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('event_name', models.CharField(max_length=36)), ('poster', models.ImageField(storage=storage_backends.PublicMediaStorage(), upload_to='')), ('slug', models.SlugField(unique=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('imageId', models.CharField(blank=True, default=None, max_length=36, null=True)), ('image', models.ImageField(storage=storage_backends.PublicMediaStorage(), upload_to='')), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recognition.Event')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Selfie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(storage=storage_backends.SelfieMediaStorage(), upload_to='')), ('photos', models.ManyToManyField(to='recognition.Photo')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('web', '0006_subservicio_image'), ] operations = [ migrations.AlterField( model_name='subservicio', name='image', field=models.ImageField(storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]
class Post(models.Model): title = models.CharField(max_length=200, unique=True) slug = models.SlugField(max_length=200, unique=True) updated_on = models.DateTimeField(auto_now=True) content = models.TextField() created_on = models.DateTimeField(auto_now_add=True) status = models.IntegerField(choices=STATUS, default=0) featured_image = models.ImageField(storage=storage_backends.PublicMediaStorage(), null=True) class Meta: ordering = ['-created_on'] def __str__(self): return self.title
class PortadasYColumnas(models.Model): title = models.CharField(max_length=15) thumbnail = models.ImageField( storage=storage_backends.PublicMediaStorage(), blank=True) file = models.FileField(storage=storage_backends.NewsMediaStorage()) slug = models.SlugField(blank=True) category = models.PositiveSmallIntegerField(choices=CATEGORY, default=PORTADAS) def __str__(self): return str(self.id) class Meta: verbose_name_plural = "Portadas y Columnas"
class Migration(migrations.Migration): dependencies = [ ('web', '0010_delete_contact'), ] operations = [ migrations.AddField( model_name='servicio', name='image', field=models.ImageField( blank=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]
class Migration(migrations.Migration): dependencies = [ ('frontend', '0004_remove_banner_header'), ] operations = [ migrations.AddField( model_name='about', name='banner', field=models.ImageField( blank=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]
class Migration(migrations.Migration): dependencies = [ ('web', '0005_auto_20200131_1200'), ] operations = [ migrations.AddField( model_name='subservicio', name='image', field=models.ImageField( blank=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]
class Migration(migrations.Migration): dependencies = [ ('periodicos', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='portadasycolumnas', options={'verbose_name_plural': 'Portadas y Columnas'}, ), migrations.AddField( model_name='portadasycolumnas', name='thumbnail', field=models.ImageField( blank=True, storage=storage_backends.PublicMediaStorage(), upload_to=''), ), ]