diff --git a/common/migrations/0003_alter_itemdata_author.py b/common/migrations/0003_alter_itemdata_author.py new file mode 100644 index 0000000..a75d559 --- /dev/null +++ b/common/migrations/0003_alter_itemdata_author.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.16 on 2024-09-20 16:03 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('common', '0002_itemdata_is_passed_moderation'), + ] + + operations = [ + migrations.AlterField( + model_name='itemdata', + name='author', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Автор'), + ), + ] diff --git a/common/models.py b/common/models.py index 65f29f8..395ad5f 100644 --- a/common/models.py +++ b/common/models.py @@ -50,7 +50,7 @@ class ItemData(models.Model): status = models.ForeignKey(ItemDataStatus, on_delete=models.CASCADE, verbose_name='Статус') - author = models.ForeignKey(User, on_delete=models.SET_NULL, verbose_name='Автор', null=True) + author = models.ForeignKey(User, on_delete=models.SET_NULL, verbose_name='Автор', null=True, blank=True) is_passed_moderation = models.BooleanField(default=False, verbose_name='Прошло модерацию') diff --git a/frontend/NovelPlus-frontend b/frontend/NovelPlus-frontend index f756ddd..dacea3a 160000 --- a/frontend/NovelPlus-frontend +++ b/frontend/NovelPlus-frontend @@ -1 +1 @@ -Subproject commit f756ddd67bbdaa6862871f4c0486f4500fcf9719 +Subproject commit dacea3a3fced9a327d02d9d27edc8cee3a65a706