Commit f46ef750 authored by Aleksander Budzinski's avatar Aleksander Budzinski Committed by Tim Graham
Browse files

Split line and added indentation for better readability.

parent 94b5bc36
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -268,8 +268,10 @@ def lookup_field(name, obj, model_admin=None):
        if callable(name):
            attr = name
            value = attr(obj)
        elif (model_admin is not None and hasattr(model_admin, name) and
          not name == '__str__' and not name == '__unicode__'):
        elif (model_admin is not None and
                hasattr(model_admin, name) and
                not name == '__str__' and
                not name == '__unicode__'):
            attr = getattr(model_admin, name)
            value = attr(obj)
        else: