Changeset View
Changeset View
Standalone View
Standalone View
films/migrations/0015_squashed_0019_production_log_models.py
| Show All 24 Lines | operations = [ | ||||
| ('date_updated', models.DateTimeField(auto_now=True)), | ('date_updated', models.DateTimeField(auto_now=True)), | ||||
| ('description', models.TextField()), | ('description', models.TextField()), | ||||
| ('start_date', models.DateField(default=datetime.date.today)), | ('start_date', models.DateField(default=datetime.date.today)), | ||||
| ('film', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='production_logs', to='films.Film')), | ('film', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='production_logs', to='films.Film')), | ||||
| ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='production_logs', to=settings.AUTH_USER_MODEL)), | ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='production_logs', to=settings.AUTH_USER_MODEL)), | ||||
| ('name', models.CharField(blank=True, max_length=512)), | ('name', models.CharField(blank=True, max_length=512)), | ||||
| ('picture_16_9', static_assets.models.static_assets.DynamicStorageFileField(default='', upload_to=common.upload_paths.get_upload_to_hashed_path)), | ('picture_16_9', static_assets.models.static_assets.DynamicStorageFileField(default='', upload_to=common.upload_paths.get_upload_to_hashed_path)), | ||||
| ('youtube_link', models.URLField(blank=True)), | ('youtube_link', models.URLField(blank=True)), | ||||
| ('storage_backend', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='production_logs', to='static_assets.StorageBackend')), | ('storage_backend', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='production_logs', to='static_assets.StorageBackend', null=True)), | ||||
| ], | ], | ||||
| options={ | options={ | ||||
| 'abstract': False, | 'abstract': False, | ||||
| }, | }, | ||||
| ), | ), | ||||
| migrations.CreateModel( | migrations.CreateModel( | ||||
| name='ProductionLogEntry', | name='ProductionLogEntry', | ||||
| fields=[ | fields=[ | ||||
| Show All 23 Lines | |||||