diff options
| author | Tom Christie | 2013-09-25 10:30:04 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-09-25 10:30:04 +0100 |
| commit | e441f85109e64345a12e65062fc0e51c5787e67f (patch) | |
| tree | e04c0ba1e2891b0c6011ca319f166c57159f3d26 /rest_framework/serializers.py | |
| parent | 21cd6386593aea0b122abec1c5cc3bd5c544aa87 (diff) | |
| download | django-rest-framework-e441f85109e64345a12e65062fc0e51c5787e67f.tar.bz2 | |
Drop 1.3 support
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index f1775762..9e3881a2 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -18,7 +18,7 @@ from decimal import Decimal from django.db import models from django.forms import widgets from django.utils.datastructures import SortedDict -from rest_framework.compat import get_concrete_model, six +from rest_framework.compat import six # Note: We do the following so that users of the framework can use this style: # @@ -575,7 +575,7 @@ class ModelSerializer(Serializer): cls = self.opts.model assert cls is not None, \ "Serializer class '%s' is missing 'model' Meta option" % self.__class__.__name__ - opts = get_concrete_model(cls)._meta + opts = cls._meta.concrete_model._meta ret = SortedDict() nested = bool(self.opts.depth) @@ -784,7 +784,7 @@ class ModelSerializer(Serializer): Return a list of field names to exclude from model validation. """ cls = self.opts.model - opts = get_concrete_model(cls)._meta + opts = cls._meta.concrete_model._meta exclusions = [field.name for field in opts.fields + opts.many_to_many] for field_name, field in self.fields.items(): |
