class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('threads', '0006_auto_20190316_1121'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('content', models.TextField(max_length=1024)), ('author', models.ForeignKey(on_delete=models.SET( comments.models.get_null_user), related_name='comments', to=settings.AUTH_USER_MODEL)), ('thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='threads.Post')), ], options={ 'ordering': ['-created'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('post', '0001_initial'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=models.SET( comments.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='post.Post')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('forums', '0007_auto_20200724_1917'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(max_length=400)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('forum', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='forums.ForumPost')), ('user', models.ForeignKey(on_delete=models.SET( comments.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-updated', '-timestamp'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=255)), ('content', models.TextField(blank=True)), ('date_added', models.DateField(default=datetime.date.today)), ('alcohol', comments.models.FloatRangeField(default=0.0)), ('nudity', comments.models.FloatRangeField(default=0.0)), ('LGBTQ', comments.models.FloatRangeField(default=0.0)), ('sex', comments.models.FloatRangeField(default=0.0)), ('language', comments.models.FloatRangeField(default=0.0)), ('violence', comments.models.FloatRangeField(default=0.0)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('recipes', '0003_auto_20200224_0508'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='id')), ('text', models.TextField(verbose_name='Comment')), ('html', models.TextField(verbose_name='Comment HTML')), ('nesting', models.PositiveSmallIntegerField(default=0, verbose_name='Nesting')), ('deleted', models.BooleanField(default=False, verbose_name='Deleted')), ('timestamp', models.DateTimeField(default=comments.models.utc_now, verbose_name='Timestamp')), ('last_edited', models.DateTimeField(default=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=utc), verbose_name='Last Edited')), ('spam', models.BooleanField(default=False, verbose_name='Marked Spam')), ('flag_count', models.IntegerField(default=0, verbose_name='Flag Count')), ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='comments.Comment')), ('recipe', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='recipes.Recipe')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp'], }, ), migrations.CreateModel( name='Flag', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='id')), ('timestamp', models.DateTimeField(default=comments.models.utc_now, verbose_name='timestamp')), ('comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='comments.Comment')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp'], }, ), migrations.AddConstraint( model_name='flag', constraint=models.UniqueConstraint(fields=('comment', 'user'), name='unique_comment_flag'), ), ]
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')}, }, ), ]