import django.utils.timezone from django.conf import settings from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ("documents", "1022_paperlesstask"), ] operations = [ migrations.CreateModel( name="Comment", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "comment", models.TextField( blank=True, help_text="Comment for the document", verbose_name="content", ), ), ( "created", models.DateTimeField( db_index=True, default=django.utils.timezone.now, verbose_name="created", ), ), ( "document", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="documents", to="documents.document", verbose_name="document", ), ), ( "user", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="users", to=settings.AUTH_USER_MODEL, verbose_name="user", ), ), ], options={ "verbose_name": "comment", "verbose_name_plural": "comments", "ordering": ("created",), }, ), ]