Skip to content

Commit 3411e9c

Browse files
authored
Merge branch 'master' into master
2 parents 868590b + 7aec57c commit 3411e9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xadmin/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from django.forms import Media
1717
from django.utils.translation import get_language
1818
from django.contrib.admin.utils import label_for_field, help_text_for_field
19+
from django import VERSION as version
1920
import datetime
2021
import decimal
2122

@@ -292,7 +293,7 @@ def lookup_field(name, obj, model_admin=None):
292293
model_admin is not None
293294
and hasattr(model_admin, name)
294295
and name not in ('__str__', '__unicode__')
295-
):
296+
):
296297
attr = getattr(model_admin, name)
297298
value = attr(obj)
298299
else:

0 commit comments

Comments
 (0)