Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add foreign key to user-ID to table trainingschedule, user will 'own' the workout
Roland Geider1946abd18861
diff --git a/manager/models.py b/manager/models.pyindex 05d08a2b2..2806e86a7 100644--- a/manager/models.py+++ b/manager/models.py@@ -15,6 +15,7 @@from django.db import modelsfrom django.utils.translation import ugettext as _+from django.contrib.auth.models import Userfrom exercises.models import Exercise@@ -25,6 +26,7 @@ class TrainingSchedule(models.Model):"""creation_date = models.DateField(_('Creation date'), auto_now_add=True)comment = models.CharField(_('Comment'), max_length=100, blank=True)+ user = models.ForeignKey(User, verbose_name = _('User'))def __unicode__(self):