Skip to content

Commit

Permalink
Merge pull request #3 from colinferm/cf-fixing-nonetype
Browse files Browse the repository at this point in the history
Fixed an issue where sometimes there are models with a model_class() …
  • Loading branch information
LegoStormtroopr committed Sep 22, 2015
2 parents 5ee3580 + 50a4651 commit a95b168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_spaghetti/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def plate(request):
nodes = []
edges = []
for model in models:
if (model.model_class() == None):
continue

model.doc = model.model_class().__doc__
_id = "%s__%s"%(model.app_label,model.model)
if _id in excludes:
Expand Down

0 comments on commit a95b168

Please sign in to comment.