diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_user.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_user.py b/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_user.py new file mode 100644 index 0000000..e2b86c5 --- /dev/null +++ b/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_user.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.1 on 2023-05-23 15:25 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('django_comments', '0003_add_submit_date_index'), + ] + + operations = [ + migrations.AlterField( + model_name='comment', + name='content_type', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_type_set_for_%(class)s', to='contenttypes.contenttype', verbose_name='content type'), + ), + migrations.AlterField( + model_name='comment', + name='user', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_comments', to=settings.AUTH_USER_MODEL, verbose_name='user'), + ), + ] |