This commit is contained in:
Raphael Rouiller
2024-07-08 14:06:52 +02:00
commit aa54287126
96 changed files with 2718 additions and 0 deletions

View File

@ -0,0 +1,12 @@
from django.db import models
from .user import CustomUser
class Suggestion(models.Model):
url = models.URLField()
description = models.TextField()
suggested_by = models.ForeignKey(CustomUser, on_delete=models.SET_NULL, null=True)
created_at = models.DateTimeField(auto_now_add=True)
is_approved = models.BooleanField(default=False)
def __str__(self):
return self.url