From 0888f9cfc33b584ebfdb2dafb7fe927a0f25ed9f Mon Sep 17 00:00:00 2001 From: Ilias Kiourktsidis Date: Wed, 25 Mar 2015 12:00:20 +0000 Subject: [PATCH] Use _meta instead of Meta on is_abstract_model function --- rest_framework/utils/model_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/utils/model_meta.py b/rest_framework/utils/model_meta.py index e885be52e..19f751b04 100644 --- a/rest_framework/utils/model_meta.py +++ b/rest_framework/utils/model_meta.py @@ -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