Compare commits

...

2 Commits

Author SHA1 Message Date
Gregory Trullemans a8d70aaecd First commit (without Notifications) 2023-04-27 12:38:14 +02:00
Gregory Trullemans 70ede95080 First commit (without Notifications) 2023-04-27 12:33:22 +02:00
1 changed files with 2 additions and 16 deletions

View File

@ -7,25 +7,11 @@ 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
FUNCTIONALITY_CHOICES = (
(0, "Chrono"),
(1, "Accident"),
(2, "LearnedSkill"),
(3, "Plan"),
(4, "Point"),
(5, "MindState"),
(6, "GymnastHasRoutine"),
(7, "NumberOfRoutineDone"),
(8, "HeightWeight"),
(9, "Note"),
(10, "Intensity"),
(11, "SeasonInformation"),
)
User = get_user_model()
@ -68,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}"