1. Luke Plant
  2. south


Andrew Godwin  committed 7dc7f1e Merge

Branch merge

  • Participants
  • Parent commits 34c8cf5, 6a7a84c
  • Branches default
  • Tags 0.6.2

Comments (0)

Files changed (1)

File south/modelsinspector.py

View file
  • Ignore whitespace
     # Now, ask the parser to have a look at this model too.
         parser_fields = modelsparser.get_model_fields(model, m2m) or {}
-    except TypeError: # Almost certainly a not-real module
+    except (TypeError, IndentationError): # Almost certainly a not-real module
         parser_fields = {}
     # Now, go through all the fields and try to get their definition
     return meta_def
 # Now, load the built-in South introspection plugins
-import south.introspection_plugins
+import south.introspection_plugins