File tree 3 files changed +10
-1
lines changed
pylint_django/augmentations 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
* [ naquiroz] ( https://github.com/naquiroz )
21
21
* [ john-sandall] ( https://github.com/john-sandall )
22
22
* [ dineshtrivedi] ( https://github.com/dineshtrivedi )
23
+ * [ jhhayashi] ( https://github.com/jhhayashi )
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ This plugin is disabled by default! To enable it::
106
106
Contributing
107
107
------------
108
108
109
- Please feel free to add your name to the ``CONTRIBUTORS.rst `` file if you want to
109
+ Please feel free to add your name to the ``CONTRIBUTORS.md `` file if you want to
110
110
be credited when pull requests get merged. You can also add to the
111
111
``CHANGELOG.rst `` file if you wish, although we'll also do that when merging.
112
112
Original file line number Diff line number Diff line change @@ -895,6 +895,14 @@ def apply_augmentations(linter):
895
895
IsClass ("django.views.generic.edit.ProcessFormView" ),
896
896
)
897
897
898
+ # ModelViewSet also suffers from too many ancestors
899
+ suppress_message (
900
+ linter ,
901
+ MisdesignChecker .visit_classdef ,
902
+ "too-many-ancestors" ,
903
+ IsClass ("rest_framework.viewsets.ModelViewSet" ),
904
+ )
905
+
898
906
# model forms have no __init__ method anywhere in their bases
899
907
suppress_message (
900
908
linter ,
You can’t perform that action at this time.
0 commit comments