class Migration(migrations.Migration): dependencies = [ ('media', '0007_auto_20171129_1611'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', field=models.ImageField( storage=django.core.files.storage.FileSystemStorage( location=settings.UPLOAD_FILE_PATH), upload_to=apps.media.models.get_upload_photo_path, verbose_name='image'), ), migrations.AlterField( model_name='video', name='video', field=models.FileField( storage=django.core.files.storage.FileSystemStorage( location=settings.UPLOAD_FILE_PATH), upload_to=apps.media.models.get_upload_video_path, verbose_name='video'), ), ]
class Migration(migrations.Migration): dependencies = [ ('media', '0015_auto_20180108_1447'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', field=models.ImageField( storage=django.core.files.storage.FileSystemStorage( base_url='/', location=settings.BASE_DIR), upload_to=apps.media.models.get_upload_photo_path, verbose_name='image'), ), migrations.AlterField( model_name='video', name='video', field=models.FileField( storage=django.core.files.storage.FileSystemStorage( base_url='/', location=settings.BASE_DIR), upload_to=apps.media.models.get_upload_video_path, verbose_name='video'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('profile', '0001_initial'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_create', models.DateTimeField(auto_now_add=True, verbose_name='date create')), ('date_last_modify', models.DateTimeField(auto_now=True, verbose_name='date last modify')), ('status', models.IntegerField(choices=[(0, 'disable'), (1, 'enable')], default=1, null=True, verbose_name='status')), ('ordering', models.IntegerField(default=0, verbose_name='ordering')), ('title', models.CharField(max_length=255, verbose_name='title')), ('pub_date', models.DateField(blank=True, null=True, verbose_name='publication date')), ('photo', models.ImageField(upload_to=apps.media.models.get_upload_photo_path, verbose_name='image')), ('note', models.TextField(blank=True, verbose_name='note')), ('tags', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, size=None)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='profile.Company', verbose_name='company')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='media_photo_creator', to=settings.AUTH_USER_MODEL, verbose_name='creator')), ('last_modifier', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='media_photo_last_modifier', to=settings.AUTH_USER_MODEL, verbose_name='last modifier')), ], options={ 'verbose_name': 'photo', 'verbose_name_plural': 'photos', 'permissions': (('list_photo', 'can list photo'), ('detail_photo', 'can detail photo'), ('disable_photo', 'can disable photo')), }, ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_create', models.DateTimeField(auto_now_add=True, verbose_name='date create')), ('date_last_modify', models.DateTimeField(auto_now=True, verbose_name='date last modify')), ('status', models.IntegerField(choices=[(0, 'disable'), (1, 'enable')], default=1, null=True, verbose_name='status')), ('ordering', models.IntegerField(default=0, verbose_name='ordering')), ('title', models.CharField(max_length=255, verbose_name='title')), ('pub_date', models.DateField(blank=True, verbose_name='publication date')), ('video', models.FileField(upload_to=apps.media.models.get_upload_video_path, verbose_name='video')), ('note', models.TextField(blank=True, verbose_name='note')), ('tags', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, size=None)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='videos', to='profile.Company', verbose_name='company')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='media_video_creator', to=settings.AUTH_USER_MODEL, verbose_name='creator')), ('last_modifier', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='media_video_last_modifier', to=settings.AUTH_USER_MODEL, verbose_name='last modifier')), ], options={ 'verbose_name': 'video', 'verbose_name_plural': 'videos', 'permissions': (('list_video', 'can list video'), ('detail_video', 'can detail video'), ('disable_video', 'can disable video')), }, ), ]
class Migration(migrations.Migration): dependencies = [ ('media', '0013_auto_20180108_1201'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', field=models.ImageField(storage=django.core.files.storage.FileSystemStorage(location='/home/vamsi/Projects/src/office2017.whistle.it/media_private'), upload_to=apps.media.models.get_upload_photo_path, verbose_name='image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('media', '0012_auto_20180108_1143'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', field=models.ImageField( upload_to=apps.media.models.get_upload_photo_path, verbose_name='image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('media', '0008_auto_20171204_0922'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', field=models.ImageField( upload_to=apps.media.models.get_upload_photo_path, verbose_name='image'), ), migrations.AlterField( model_name='video', name='video', field=models.FileField( upload_to=apps.media.models.get_upload_video_path, verbose_name='video'), ), ]
class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('media', '0005_auto_20170720_1407'), ] operations = [ migrations.RemoveField( model_name='photo', name='company', ), migrations.RemoveField( model_name='video', name='company', ), migrations.AddField( model_name='photo', name='content_type', field=models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), preserve_default=False, ), migrations.AddField( model_name='photo', name='for_concrete_model', field=models.BooleanField(default=False, verbose_name='for concrete model'), ), migrations.AddField( model_name='photo', name='object_id', field=models.PositiveIntegerField(default=None), preserve_default=False, ), migrations.AddField( model_name='video', name='content_type', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), preserve_default=False, ), migrations.AddField( model_name='video', name='for_concrete_model', field=models.BooleanField(default=False, verbose_name='for concrete model'), ), migrations.AddField( model_name='video', name='object_id', field=models.PositiveIntegerField(default=None), preserve_default=False, ), migrations.AlterField( model_name='video', name='video', field=models.ImageField( upload_to=apps.media.models.get_upload_video_path, verbose_name='video'), ), ]