EditorForm for non-geometry MapItems

This commit is contained in:
Laura Klünder 2016-11-28 15:46:58 +01:00
parent 8ac8dd912a
commit 9a707469c2
2 changed files with 31 additions and 23 deletions

View file

@ -40,7 +40,7 @@ def list_mapitems(request, mapitem_type, level=None):
if hasattr(mapitemtype, 'level') and level is None:
raise Http404('Missing level.')
elif not hasattr(mapitemtype, 'level') and level is not None:
raise redirect('editor.mapitems', mapitem_type=mapitem_type)
return redirect('editor.mapitems', mapitem_type=mapitem_type)
queryset = mapitemtype.objects.all()
if level is not None: