don't show "no longer exists" when that's not the case
This commit is contained in:
parent
eaffd55718
commit
53c2d5178e
1 changed files with 8 additions and 10 deletions
|
@ -258,16 +258,14 @@ def changeset_detail(request, pk):
|
||||||
'problem': _("can't create this object") if obj_problems.cant_create else None,
|
'problem': _("can't create this object") if obj_problems.cant_create else None,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
changes.append({
|
if obj_problems.obj_does_not_exist:
|
||||||
'icon': 'warning-sign',
|
changes.append({
|
||||||
'class': 'danger',
|
'icon': 'warning-sign',
|
||||||
'empty': True,
|
'class': 'danger',
|
||||||
'title': _('no longer exists'),
|
'empty': True,
|
||||||
'problem': (
|
'title': _('no longer exists'),
|
||||||
_("can't update this object because it no longer exists")
|
'problem': _("can't update this object because it no longer exists"),
|
||||||
if obj_problems.obj_does_not_exist else None
|
})
|
||||||
),
|
|
||||||
})
|
|
||||||
# todo: make it possible for the user to get rid of this
|
# todo: make it possible for the user to get rid of this
|
||||||
|
|
||||||
update_changes = []
|
update_changes = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue