mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-12-05 15:14:41 -05:00
Changed Upvote and Downvote Functionality to be unique
This commit is contained in:
1 parent
5d4551e4fa
commit
af9340c54f
3 files changed
+48
-4
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 4.2.11 on 2024-04-12 21:47
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("api", "0006_file_points_peeruser_points"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="file",
|
||||
name="points",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="file",
|
||||
name="downvotes",
|
||||
field=models.ManyToManyField(
|
||||
related_name="downvoted_file", to=settings.AUTH_USER_MODEL
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="file",
|
||||
name="upvotes",
|
||||
field=models.ManyToManyField(
|
||||
related_name="upvoted_file", to=settings.AUTH_USER_MODEL
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user