comment notifications
This commit is contained in:
@@ -891,6 +891,7 @@ class WorkoutComment(models.Model):
|
||||
comment = models.TextField(max_length=300)
|
||||
created = models.DateTimeField(default=timezone.now)
|
||||
read = models.BooleanField(default=False)
|
||||
notification = models.BooleanField(default=False,verbose_name="Send me notifications")
|
||||
user = models.ForeignKey(User)
|
||||
workout = models.ForeignKey(Workout)
|
||||
|
||||
@@ -905,7 +906,7 @@ class WorkoutComment(models.Model):
|
||||
class WorkoutCommentForm(ModelForm):
|
||||
class Meta:
|
||||
model = WorkoutComment
|
||||
fields = ['comment',]
|
||||
fields = ['comment','notification']
|
||||
widgets = {
|
||||
'comment': forms.Textarea,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user