mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 19:56:19 -04:00
Changed Upvote and Downvote Functionality to be unique
This commit is contained in:
@@ -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