class Migration(migrations.Migration): dependencies = [ ('comments', '0026_uses_function_to_rename_file'), ] operations = [ migrations.AlterField( model_name='callattachment', name='file', field=models.FileField( storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.call_attachment_rename), ), migrations.AlterField( model_name='projectattachment', name='file', field=models.FileField( storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.proposal_evaluation_rename), ), migrations.AlterField( model_name='proposalevaluationattachment', name='file', field=models.FileField( storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.proposal_evaluation_rename), ), ]
class Migration(migrations.Migration): dependencies = [ ('comments', '0033_add_categories'), ] operations = [ migrations.AlterField( model_name='callattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.call_attachment_rename, validators=[*project_core.utils.utils.management_file_validator()]), ), migrations.AlterField( model_name='grantagreementattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.grant_agreement_attachment_rename, validators=[*project_core.utils.utils.management_file_validator()]), ), migrations.AlterField( model_name='projectattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.project_attachment_rename, validators=[*project_core.utils.utils.management_file_validator()]), ), migrations.AlterField( model_name='proposalattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.proposal_attachment_rename, validators=[*project_core.utils.utils.management_file_validator()]), ), migrations.AlterField( model_name='proposalevaluationattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.proposal_evaluation_rename, validators=[*project_core.utils.utils.management_file_validator()]), ), ]
class Migration(migrations.Migration): dependencies = [ ('comments', '0029_fixes_invoice_category_foreign_key'), ] operations = [ migrations.AlterField( model_name='projectattachment', name='file', field=models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.project_attachment_rename), ), ]
class Migration(migrations.Migration): dependencies = [ ('comments', '0025_projectattachment_projectattachmentcategory_projectcomment_projectcommentcategory' ), ] operations = [ migrations.AlterField( model_name='proposalattachment', name='file', field=models.FileField( storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models.proposal_attachment_rename), ), ]
class Migration(migrations.Migration): dependencies = [ ('comments', '0009_auto_20171006_2353'), ] operations = [ migrations.AlterField( model_name='commentpost', name='file', field=models.FileField( upload_to='img', validators=[comments.models.validate_file_extension]), ), migrations.AlterField( model_name='commentpost', name='pub_date', field=models.DateTimeField(default=datetime.datetime( 2017, 10, 6, 23, 58, 51, 168109), verbose_name='Дата комментария'), ), ]
class Migration(migrations.Migration): dependencies = [ ('comments', '0008_auto_20171004_2355'), ] operations = [ migrations.AddField( model_name='commentpost', name='file', field=models.FileField( default=0, upload_to='documents/%Y/%m/%d', validators=[comments.models.validate_file_extension]), preserve_default=False, ), migrations.AlterField( model_name='commentpost', name='pub_date', field=models.DateTimeField(default=datetime.datetime( 2017, 10, 6, 23, 53, 35, 129157), verbose_name='Дата комментария'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('grant_management', '0048_installment_helptext'), ('comments', '0030_auto_20200520_1245'), ] operations = [ migrations.CreateModel( name='GrantAgreementCommentCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField( auto_now_add=True, help_text='Date and time at which the entry was created') ), ('modified_on', models.DateTimeField( auto_now=True, help_text='Date and time at which the entry was modified', null=True)), ('category', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to='comments.Category')), ], options={ 'verbose_name_plural': 'GrantAgreement Comment Categories', }, ), migrations.CreateModel( name='GrantAgreementAttachmentCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField( auto_now_add=True, help_text='Date and time at which the entry was created') ), ('modified_on', models.DateTimeField( auto_now=True, help_text='Date and time at which the entry was modified', null=True)), ('category', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to='comments.Category')), ], options={ 'verbose_name_plural': 'Grant Agreement Attachment Categories', }, ), migrations.CreateModel( name='GrantAgreementComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField( auto_now_add=True, help_text='Date and time at which the entry was created') ), ('modified_on', models.DateTimeField( auto_now=True, help_text='Date and time at which the entry was modified', null=True)), ('text', models.TextField(help_text='Comment text')), ('category', models.ForeignKey( help_text='Type of comment', on_delete=django.db.models.deletion.PROTECT, to='comments.GrantAgreementCommentCategory')), ('created_by', models.ForeignKey( blank=True, help_text='User by which the entry was created', null=True, on_delete=django.db.models.deletion.PROTECT, related_name= 'comments_grantagreementcomment_created_by_related', to=settings.AUTH_USER_MODEL)), ('grant_agreement', models.ForeignKey( help_text= 'GrantAgreement about which the comment was made', on_delete=django.db.models.deletion.PROTECT, to='grant_management.GrantAgreement')), ], options={ 'unique_together': {('grant_agreement', 'created_on', 'created_by')}, }, ), migrations.CreateModel( name='GrantAgreementAttachment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField( auto_now_add=True, help_text='Date and time at which the entry was created') ), ('modified_on', models.DateTimeField( auto_now=True, help_text='Date and time at which the entry was modified', null=True)), ('text', models.TextField(blank=True, help_text='Comment of the attachment', null=True)), ('file', models.FileField( storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to=comments.models. grant_agreement_attachment_rename)), ('category', models.ForeignKey( help_text='Category of the attachment', on_delete=django.db.models.deletion.PROTECT, to='comments.GrantAgreementAttachmentCategory')), ('created_by', models.ForeignKey( blank=True, help_text='User by which the entry was created', null=True, on_delete=django.db.models.deletion.PROTECT, related_name= 'comments_grantagreementattachment_created_by_related', to=settings.AUTH_USER_MODEL)), ('grant_agreement', models.ForeignKey( help_text='GrantAgreement that this attachment belongs to', on_delete=django.db.models.deletion.PROTECT, to='grant_management.GrantAgreement')), ], options={ 'abstract': False, 'unique_together': {('created_on', 'created_by')}, }, ), ]