Skip to content

Commit

Permalink
chore(fix): Modified Article schema
Browse files Browse the repository at this point in the history
  • Loading branch information
happychuks committed Aug 22, 2024
1 parent 3fb2cfe commit 310d58a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ vpsSetup.md
test.rest
db.sqlite3
old-backup-db.sqlite3

dump.rdp
client/
18 changes: 18 additions & 0 deletions server/apps/research/migrations/0013_alter_article_summary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.8 on 2024-08-22 00:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('research', '0012_alter_article_summary_alter_article_title_and_more'),
]

operations = [
migrations.AlterField(
model_name='article',
name='summary',
field=models.TextField(blank=True),
),
]
18 changes: 18 additions & 0 deletions server/apps/research/migrations/0014_alter_article_title.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.8 on 2024-08-22 00:09

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('research', '0013_alter_article_summary'),
]

operations = [
migrations.AlterField(
model_name='article',
name='title',
field=models.TextField(),
),
]
4 changes: 2 additions & 2 deletions server/apps/research/models/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class Article(BaseModel):
('ready', 'Ready'),
)

title = models.CharField(max_length=255)
title = models.TextField()
content = CKEditor5Field('Text', null=True, blank=True, config_name='extends')
summary = models.CharField(max_length=255, blank=True)
summary = models.TextField(blank=True)
authors = models.ManyToManyField(Author, blank=True, related_name='articles')
slug = models.SlugField(blank=True)
categories = models.ManyToManyField(Category, blank=True, related_name='articles')
Expand Down

0 comments on commit 310d58a

Please sign in to comment.