Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1772 closed defect (fixed)

[patch] contrib.comments user_is_moderator() wrong function call

Reported by: Jure Cuhalev <gandalf@…> Owned by: Adrian Holovaty
Component: Core (Other) Version: dev
Severity: normal Keywords:
Cc: gandalf@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In django.contrib.comments.models.py def user_is_moderator(self, user): (line 59) the function calls:

for g in user.group_set.all():

but group_set doesn't exist, so we get a nice error telling us that. Replacing this with:

for g in user.groups.all():

makes things work again.

Attachments (1)

models.py.patch (446 bytes ) - added by gandalf@… 18 years ago.
fixed function call

Download all attachments as: .zip

Change History (2)

by gandalf@…, 18 years ago

Attachment: models.py.patch added

fixed function call

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

I fixed this in [2848] yesterday -- had a typo in the commit message.

Note: See TracTickets for help on using tickets.
Back to Top