Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========


Version 2.4.3 (05 Mar 2021)
---------------------------

- Added `all` to available ManyToMany field attributes. (@ypcrumble)


Version 2.4.2 (08 Jan 2021)
---------------------------

Expand Down
1 change: 1 addition & 0 deletions pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@

MANYTOMANY_FIELD_ATTRS = {
'add',
'all',
'clear',
'related_name',
'related_query_name',
Expand Down
3 changes: 3 additions & 0 deletions pylint_django/tests/input/func_noerror_manytomanyfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def grant_permissions(self):
self.user_permissions.add(perm)
return self.user_permissions

def get_permissions(self):
self.user_permissions.all()

def add_permission(self, permission):
self.user_permissions.add(permission)

Expand Down