Commit 0888f9cf by Ilias Kiourktsidis

Use _meta instead of Meta on is_abstract_model function

parent 486f0a93
...@@ -173,4 +173,4 @@ def is_abstract_model(model): ...@@ -173,4 +173,4 @@ def is_abstract_model(model):
""" """
Given a model class, returns a boolean True if it is abstract and False if it is not. Given a model class, returns a boolean True if it is abstract and False if it is not.
""" """
return hasattr(model, 'Meta') and hasattr(model._meta, 'abstract') and model._meta.abstract return hasattr(model, '_meta') and hasattr(model._meta, 'abstract') and model._meta.abstract
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment