-
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.
chore(fix): Added manytomany relationship to Categories schema
- Loading branch information
1 parent
4c88da1
commit ba86849
Showing
8 changed files
with
66 additions
and
15 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
27 changes: 27 additions & 0 deletions
27
server/apps/research/migrations/0006_remove_article_category_article_categories_and_more.py
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 5.0.7 on 2024-08-14 09:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0005_alter_author_bio_alter_author_twitter_username'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='article', | ||
name='category', | ||
), | ||
migrations.AddField( | ||
model_name='article', | ||
name='categories', | ||
field=models.ManyToManyField(blank=True, related_name='articles', to='research.category'), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='summary', | ||
field=models.CharField(blank=True, max_length=100), | ||
), | ||
] |
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
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
Binary file not shown.
Binary file added
BIN
+188 KB
server/media/images/UnderstandingBlockchainGovernance.BB5AHiNA_1c0KSU.webp
Binary file not shown.