Skip to content

Commit c7b2a63

Browse files
committed
Silence old-style-class for widget Meta too
1 parent 9acfea3 commit c7b2a63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def is_model_media_subclass(node):
162162
'.Model', # for the transformed version used in this plugin
163163
'django.forms.forms.Form',
164164
'.Form',
165+
'django.forms.widgets.Widget',
166+
'.Widget',
165167
'django.forms.models.ModelForm',
166168
'.ModelForm')
167169
return node_is_subclass(node.parent, *parents)

0 commit comments

Comments
 (0)