-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(fix): Fixed the article update bug
- Loading branch information
1 parent
78325ea
commit c1178bc
Showing
23 changed files
with
125 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,69 @@ | ||
# Generated by Django 5.0.7 on 2024-08-05 02:36 | ||
# Generated by Django 5.0.8 on 2024-09-23 11:35 | ||
|
||
from django.db import migrations | ||
import apps.research.models.article | ||
import django.db.models.deletion | ||
import tinymce.models | ||
import uuid | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Category', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), | ||
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)), | ||
('updated_at', models.DateTimeField(auto_now=True, null=True)), | ||
('name', models.CharField(max_length=255)), | ||
], | ||
options={ | ||
'verbose_name_plural': 'Categories', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Author', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), | ||
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)), | ||
('updated_at', models.DateTimeField(auto_now=True, null=True)), | ||
('bio', models.TextField(blank=True, null=True)), | ||
('twitter_username', models.CharField(blank=True, max_length=100, null=True)), | ||
('full_name', models.CharField(blank=True, max_length=255, null=True)), | ||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'verbose_name_plural': 'Authors', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Article', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), | ||
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)), | ||
('updated_at', models.DateTimeField(auto_now=True, null=True)), | ||
('title', models.TextField()), | ||
('content', tinymce.models.HTMLField(blank=True, null=True)), | ||
('summary', models.TextField(blank=True)), | ||
('acknowledgement', tinymce.models.HTMLField(blank=True, null=True)), | ||
('slug', models.SlugField(blank=True)), | ||
('thumb', models.ImageField(blank=True, default=apps.research.models.article.get_default_thumb, upload_to='images/')), | ||
('views', models.PositiveBigIntegerField(default=0)), | ||
('status', models.CharField(choices=[('draft', 'Draft'), ('ready', 'Ready')], db_index=True, default='draft', max_length=10)), | ||
('scheduled_publish_time', models.DateTimeField(blank=True, db_index=True, null=True)), | ||
('authors', models.ManyToManyField(blank=True, related_name='articles', to='research.author')), | ||
('categories', models.ManyToManyField(blank=True, related_name='articles', to='research.category')), | ||
], | ||
options={ | ||
'ordering': ('-scheduled_publish_time',), | ||
}, | ||
), | ||
] |
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
server/apps/research/migrations/0003_remove_article_author_author_article_authors.py
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
server/apps/research/migrations/0004_alter_author_options.py
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
server/apps/research/migrations/0005_alter_author_bio_alter_author_twitter_username.py
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
server/apps/research/migrations/0006_remove_article_category_article_categories_and_more.py
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
server/apps/research/migrations/0007_article_scheduled_publish_time.py
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
server/apps/research/migrations/0008_alter_article_content.py
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
server/apps/research/migrations/0009_alter_article_thumb.py
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
server/apps/research/migrations/0010_alter_article_summary_alter_article_title.py
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
server/apps/research/migrations/0011_alter_article_summary_alter_article_title_and_more.py
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
server/apps/research/migrations/0012_alter_article_summary_alter_article_title_and_more.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.