Compare commits
2 Commits
6460ac5afc
...
a8d70aaecd
Author | SHA1 | Date |
---|---|---|
Gregory Trullemans | a8d70aaecd | |
Gregory Trullemans | 70ede95080 |
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue