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.title = dataform.cleaned_data['title']
|
||||||
application.text = dataform.cleaned_data['text']
|
application.text = dataform.cleaned_data['text']
|
||||||
application.reason = dataform.cleaned_data['reason']
|
application.reason = dataform.cleaned_data['reason']
|
||||||
|
|
||||||
|
try:
|
||||||
trivial_change = config['application_allow_trivial_change'] \
|
trivial_change = config['application_allow_trivial_change'] \
|
||||||
and dataform.cleaned_data['trivial_change']
|
and dataform.cleaned_data['trivial_change']
|
||||||
|
except KeyError:
|
||||||
|
trivial_change = False
|
||||||
application.save(request.user, trivial_change=trivial_change)
|
application.save(request.user, trivial_change=trivial_change)
|
||||||
if is_manager:
|
if is_manager:
|
||||||
# log added supporters
|
# log added supporters
|
||||||
@ -295,6 +299,7 @@ def edit(request, application_id=None):
|
|||||||
'actions': actions,
|
'actions': actions,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@permission_required('application.can_manage_application')
|
@permission_required('application.can_manage_application')
|
||||||
@template('application/view.html')
|
@template('application/view.html')
|
||||||
def set_number(request, application_id):
|
def set_number(request, application_id):
|
||||||
|
Loading…
Reference in New Issue
Block a user