move choices from form to view

so that when updating, you don't have to update two separate places
This commit is contained in:
Leo Hemsted
2019-02-19 11:35:34 +00:00
parent b062a5a13f
commit bfefb115ed
2 changed files with 19 additions and 17 deletions

View File

@@ -1286,10 +1286,5 @@ class TemplateAndFoldersSelectionForm(Form):
class ClearCacheForm(StripWhitespaceForm):
model_type = RadioField(
'What do you want to clear today',
choices=[
('user', 'Users'),
('service', 'Services'),
('template', 'Templates')
],
validators=[DataRequired()]
)