better use of forms in bulk actions
This commit is contained in:
@@ -1265,6 +1265,12 @@ class ForceCurveMultipleCompareForm(forms.Form):
|
||||
widget=forms.CheckboxSelectMultiple()
|
||||
)
|
||||
|
||||
bulkactions = (
|
||||
('remove','remove'),
|
||||
)
|
||||
class WorkoutBulkActions(forms.Form):
|
||||
action = forms.ChoiceField(
|
||||
choices=bulkactions, label='Action', required=True, initial='remove')
|
||||
|
||||
class WorkoutMultipleCompareForm(forms.Form):
|
||||
workouts = forms.ModelMultipleChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user