Private
Public Access
1
0

improved workout edit form

This commit is contained in:
Sander Roosendaal
2018-06-08 09:08:58 +02:00
parent 229145679a
commit dcb207fb20
3 changed files with 6 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ $( document ).ready(function() {
$(this).val() == 'rower' $(this).val() == 'rower'
|| $(this).val() == 'skierg' || $(this).val() == 'skierg'
|| $(this).val() == 'dynamic' || $(this).val() == 'dynamic'
|| $(this).val() == 'sliders' || $(this).val() == 'slides'
|| $(this).val() == 'paddle' || $(this).val() == 'paddle'
|| $(this).val() == 'snow' || $(this).val() == 'snow'
) { ) {

View File

@@ -26,7 +26,7 @@ $( document ).ready(function() {
$(this).val() == 'rower' $(this).val() == 'rower'
|| $(this).val() == 'skierg' || $(this).val() == 'skierg'
|| $(this).val() == 'dynamic' || $(this).val() == 'dynamic'
|| $(this).val() == 'sliders' || $(this).val() == 'slides'
|| $(this).val() == 'paddle' || $(this).val() == 'paddle'
|| $(this).val() == 'snow' || $(this).val() == 'snow'
) { ) {

View File

@@ -450,6 +450,8 @@ class DataTest(TestCase):
'notes':'Aap noot \n mies', 'notes':'Aap noot \n mies',
'weightcategory':'lwt', 'weightcategory':'lwt',
'workouttype':'water', 'workouttype':'water',
'boattype':'1x',
'private':False,
} }
form = WorkoutForm(data=form_data) form = WorkoutForm(data=form_data)
self.assertTrue(form.is_valid()) self.assertTrue(form.is_valid())
@@ -680,6 +682,8 @@ class ViewTest(TestCase):
'distance':'15000', 'distance':'15000',
'weightcategory':'hwt', 'weightcategory':'hwt',
'workouttype':'rower', 'workouttype':'rower',
'boattype':'1x',
'private':True,
'notes':'noot mies', 'notes':'noot mies',
} }
form = WorkoutForm(data=form_data) form = WorkoutForm(data=form_data)