diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-24 19:45:07 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-24 19:45:07 -0500 |
| commit | 0bcfd4a9a26d66af8a44ff36686b54ad2572d9e1 (patch) | |
| tree | ba6d035a835c2451427a46d29b30c85898dd398d /app/forms/workout.py | |
| parent | 0dd74e2b672053e3296bc814a36988ba8463854f (diff) | |
| download | Strengthy-0bcfd4a9a26d66af8a44ff36686b54ad2572d9e1.tar.xz Strengthy-0bcfd4a9a26d66af8a44ff36686b54ad2572d9e1.zip | |
Fix workout creation and editing
Diffstat (limited to 'app/forms/workout.py')
| -rw-r--r-- | app/forms/workout.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/forms/workout.py b/app/forms/workout.py index 5537114..ec9eb03 100644 --- a/app/forms/workout.py +++ b/app/forms/workout.py @@ -12,7 +12,7 @@ from wtforms.validators import DataRequired, Email, Optional # /workout/create class ExerciseCreateForm(Form): # TODO no exercise_*, breaks workout_edit endpoint - id = HiddenField("id", [DataRequired()]) + id = HiddenField("id", [Optional()]) name = StringField("name", [DataRequired()]) sets = IntegerField("sets", [DataRequired()]) units = IntegerField("units", [DataRequired()]) |
