From 624cc62c0b5ac3aa1235a503416bfa6cf2ee326a Mon Sep 17 00:00:00 2001 From: Villiers Strauss Date: Wed, 28 Sep 2016 15:21:54 +0200 Subject: [PATCH] Check for Meta class on BaseSerializer, not ModelSerializer --- pylint_django/augmentations/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylint_django/augmentations/__init__.py b/pylint_django/augmentations/__init__.py index 01b85756..986ae05d 100644 --- a/pylint_django/augmentations/__init__.py +++ b/pylint_django/augmentations/__init__.py @@ -398,7 +398,7 @@ def is_model_meta_subclass(node): 'django.forms.forms.Form', '.ModelForm', 'django.forms.models.ModelForm', - 'rest_framework.serializers.ModelSerializer', + 'rest_framework.serializers.BaseSerializer', 'rest_framework.generics.GenericAPIView', 'rest_framework.viewsets.ReadOnlyModelViewSet', 'rest_framework.viewsets.ModelViewSet',