fix typo in trivial changes

This commit is contained in:
Oskar Hahn 2012-06-30 14:50:14 +02:00
parent c19118e774
commit aeb8a40875

View File

@ -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']
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):