diff --git a/server/apps/research/migrations/0014_alter_article_authors.py b/server/apps/research/migrations/0014_alter_article_authors.py new file mode 100644 index 0000000..493f07c --- /dev/null +++ b/server/apps/research/migrations/0014_alter_article_authors.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.8 on 2024-12-02 08:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('research', '0013_alter_article_authors'), + ] + + operations = [ + migrations.AlterField( + model_name='article', + name='authors', + field=models.ManyToManyField(blank=True, related_name='articles', to='research.author'), + ), + ] diff --git a/server/apps/research/models/article.py b/server/apps/research/models/article.py index 2a0f57b..6172bf2 100644 --- a/server/apps/research/models/article.py +++ b/server/apps/research/models/article.py @@ -26,7 +26,7 @@ class Article(BaseModel): content = HTMLField(blank=True, null=True) summary = models.TextField(blank=True) acknowledgement = HTMLField(blank=True, null=True) - authors = models.ManyToManyField(Author, related_name='articles') + authors = models.ManyToManyField(Author, blank=True, related_name='articles') slug = models.SlugField(max_length=255, blank=True, db_index=True) categories = models.ManyToManyField(Category, blank=True, related_name='articles') thumb = models.ImageField(upload_to='images/', default=get_default_thumb, blank=True) diff --git a/server/core/config/base.py b/server/core/config/base.py index eb3de97..ae1ed98 100644 --- a/server/core/config/base.py +++ b/server/core/config/base.py @@ -57,7 +57,7 @@ THIRD_PARTY_APPS = [ 'corsheaders', - #'django_celery_beat', + 'django_celery_beat', 'tinymce', ]