fix typo in trivial changes
This commit is contained in:
parent
c19118e774
commit
aeb8a40875
|
@ -227,8 +227,12 @@ def edit(request, application_id=None):
|
|||
application.title = dataform.cleaned_data['title']
|
||||
application.text = dataform.cleaned_data['text']
|
||||
application.reason = dataform.cleaned_data['reason']
|
||||
trivial_change = config['application_allow_trivial_change'] \
|
||||
and dataform.cleaned_data['trivial_change']
|
||||
|
||||
try:
|
||||
trivial_change = config['application_allow_trivial_change'] \
|
||||
and dataform.cleaned_data['trivial_change']
|
||||
except KeyError:
|
||||
trivial_change = False
|
||||
application.save(request.user, trivial_change=trivial_change)
|
||||
if is_manager:
|
||||
# log added supporters
|
||||
|
@ -295,6 +299,7 @@ def edit(request, application_id=None):
|
|||
'actions': actions,
|
||||
}
|
||||
|
||||
|
||||
@permission_required('application.can_manage_application')
|
||||
@template('application/view.html')
|
||||
def set_number(request, application_id):
|
||||
|
|
Loading…
Reference in New Issue