mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Use _meta instead of Meta on is_abstract_model function
This commit is contained in:
parent
486f0a9367
commit
0888f9cfc3
|
@ -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.
|
||||
"""
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user