Skip to content

Commit 0888f9c

Browse files
committed
Use _meta instead of Meta on is_abstract_model function
1 parent 486f0a9 commit 0888f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/utils/model_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@ def is_abstract_model(model):
173173
"""
174174
Given a model class, returns a boolean True if it is abstract and False if it is not.
175175
"""
176-
return hasattr(model, 'Meta') and hasattr(model._meta, 'abstract') and model._meta.abstract
176+
return hasattr(model, '_meta') and hasattr(model._meta, 'abstract') and model._meta.abstract

0 commit comments

Comments
 (0)