Skip to content

Commit

Permalink
Check for Meta class on BaseSerializer, not ModelSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Villiers Strauss committed Sep 28, 2016
1 parent ed19dff commit 624cc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 624cc62

Please sign in to comment.