Skip to content

Commit 624cc62

Browse files
author
Villiers Strauss
committed
Check for Meta class on BaseSerializer, not ModelSerializer
1 parent ed19dff commit 624cc62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def is_model_meta_subclass(node):
398398
'django.forms.forms.Form',
399399
'.ModelForm',
400400
'django.forms.models.ModelForm',
401-
'rest_framework.serializers.ModelSerializer',
401+
'rest_framework.serializers.BaseSerializer',
402402
'rest_framework.generics.GenericAPIView',
403403
'rest_framework.viewsets.ReadOnlyModelViewSet',
404404
'rest_framework.viewsets.ModelViewSet',

0 commit comments

Comments
 (0)