mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 19:56:19 -04:00
Added Ranking Functionality
This commit is contained in:
@@ -6,6 +6,7 @@ from django.db import models
|
||||
class PeerUser(AbstractUser):
|
||||
ip_address = models.GenericIPAddressField(blank=True, null=True)
|
||||
last_poll = models.DateTimeField(auto_now_add=True)
|
||||
points = models.IntegerField(default=0, blank=False)
|
||||
|
||||
|
||||
class Topic(models.Model):
|
||||
@@ -57,6 +58,7 @@ class File(models.Model):
|
||||
Course, on_delete=models.SET_NULL, null=True, related_name="files"
|
||||
)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
points = models.IntegerField(default=0, blank=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.filename
|
||||
|
||||
Reference in New Issue
Block a user