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}"