mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super() in docs.
This commit is contained in:
@@ -929,7 +929,7 @@ comment model manager to exclude the user group, like this::
|
||||
|
||||
class BanningCommentManager(CommentManager):
|
||||
def get_query_set(self):
|
||||
qs = super(BanningCommentManager, self).get_query_set()
|
||||
qs = super().get_query_set()
|
||||
if getattr(settings, 'COMMENTS_BANNED_USERS_GROUP', None):
|
||||
where = ['user_id NOT IN (SELECT user_id FROM auth_user_groups WHERE group_id = %s)']
|
||||
params = [settings.COMMENTS_BANNED_USERS_GROUP]
|
||||
|
||||
Reference in New Issue
Block a user