restore should not collide with delete
This commit is contained in:
parent
fc873d990c
commit
769b643374
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def changeset_detail(request, pk, show_history=False):
|
|||
|
||||
if request.method == 'POST':
|
||||
restore = request.POST.get('restore')
|
||||
if restore.isdigit():
|
||||
if restore and restore.isdigit():
|
||||
change = changeset.changes.filter(pk=restore).first()
|
||||
if change is not None and change.can_restore:
|
||||
if request.POST.get('restore_confirm') != '1':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue