Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1772 closed defect (fixed)

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

Reported by: Jure Cuhalev <gandalf@…> Owned by: adrian
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: UI/UX:


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@… 9 years ago.
fixed function call

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by gandalf@…

fixed function call

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

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