Opened 12 years ago

Closed 12 years ago

Last modified 12 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: master
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


In 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) (446 bytes) - added by gandalf@… 12 years ago.
fixed function call

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by gandalf@…

Attachment: added

fixed function call

comment:1 Changed 12 years ago by Adrian Holovaty

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