We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486f0a9 commit 0888f9cCopy full SHA for 0888f9c
rest_framework/utils/model_meta.py
@@ -173,4 +173,4 @@ def is_abstract_model(model):
173
"""
174
Given a model class, returns a boolean True if it is abstract and False if it is not.
175
176
- 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
0 commit comments