fix another problem with maapdata in the wrong place
This commit is contained in:
parent
88fb835949
commit
c3bca2ef48
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ def changeset_detail(request, pk):
|
||||||
'value': value,
|
'value': value,
|
||||||
})
|
})
|
||||||
|
|
||||||
if field.is_relation:
|
if field.is_relation and field.related_model._meta.app_label == "mapdata":
|
||||||
# todo: super imperformant, we should do this via prev etc
|
# todo: super imperformant, we should do this via prev etc
|
||||||
try:
|
try:
|
||||||
related_obj = field.related_model.objects.get(pk=value)
|
related_obj = field.related_model.objects.get(pk=value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue