Private
Public Access
1
0

Initial model InstantPlan

This commit is contained in:
Sander Roosendaal
2021-03-10 08:43:50 +01:00
parent 1f4f76f56a
commit 565735dddd

View File

@@ -1531,6 +1531,15 @@ class TrainingTargetForm(ModelForm):
).distinct().order_by("user__last_name","user__first_name")
class InstantPlan(models.Model):
uuid = models.UUIDField(primary_key=False,editable=True,default=uuid.uuid4)
owner = models.ForeignKey(User,on_delete=models.SET_NULL,null=True)
name = models.CharField(max_length=150,blank=True)
goal = models.CharField(max_length=150,blank=True)
description = models.TextField(max_length=300,blank=True)
duration = models.IntegerField(default=6)
target = models.TextField(max_length=300,blank=True)
hoursperweek = models.IntegerField(default=4)
@python_2_unicode_compatible