EditorForm for non-geometry MapItems
This commit is contained in:
parent
8ac8dd912a
commit
9a707469c2
2 changed files with 31 additions and 23 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue