From a8d70aaecd450eedd69a933f5e9176fdd65bdd4a Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Thu, 27 Apr 2023 12:38:14 +0200 Subject: [PATCH] First commit (without Notifications) --- jarvis/profiles/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jarvis/profiles/models.py b/jarvis/profiles/models.py index 2b763ba..44a0a78 100644 --- a/jarvis/profiles/models.py +++ b/jarvis/profiles/models.py @@ -7,6 +7,7 @@ Les profils peuvent enregistrer les informations suivantes: * si la barre de navigation doit être cachée ou non """ +# from django.contrib.contenttypes.models import ContentType from django.contrib.auth import get_user_model from django.db import models from jarvis.people.models import Gymnast @@ -53,7 +54,7 @@ class Profile(models.Model): # gymnast = models.ForeignKey( # Gymnast, on_delete=models.CASCADE, related_name="notifications" # ) -# functionality = models.PositiveSmallIntegerField(choices=FUNCTIONALITY_CHOICES) +# functionality = models.ForeignKey(ContentType, on_delete=models.CASCADE) # def __str__(self): # return f"{self.user} will be notified for add/update {self.functionality} to {self.gymnast}"