#1772 closed defect (fixed)
[patch] contrib.comments user_is_moderator() wrong function call
Reported by: | 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)
Change History (2)
by , 19 years ago
Attachment: | models.py.patch added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I fixed this in [2848] yesterday -- had a typo in the commit message.
Note:
See TracTickets
for help on using tickets.
fixed function call