-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(be): connect upvote, downvote, bookmark to forum question fields…
…. update tests accordingly
- Loading branch information
MucahitErdoganUnlu
committed
Nov 17, 2024
1 parent
6bb9794
commit 2ed45c2
Showing
6 changed files
with
138 additions
and
21 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
backend/core/migrations/0006_alter_forumdownvote_forum_question_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,29 @@ | ||
# Generated by Django 5.1.2 on 2024-11-17 20:02 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0005_rename_date_forumanswer_created_at'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='forumdownvote', | ||
name='forum_question', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='downvotes', to='core.forumquestion'), | ||
), | ||
migrations.AlterField( | ||
model_name='forumupvote', | ||
name='forum_question', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='upvotes', to='core.forumquestion'), | ||
), | ||
migrations.AlterField( | ||
model_name='takequiz', | ||
name='quiz', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='takes', to='core.quiz'), | ||
), | ||
] |
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
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