#7227 closed (fixed)
'authenticate' method not declared in comments
| Reported by: | Marinho Brandão | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.comments | Version: | newforms-admin |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When try authenticate a user by the AuthenticationForm of Comments contrib, the following error is shown:
NameError: global name 'authenticate' is not defined
The solution is just import this method from django.contrib.auth
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | patch_comments.diff added |
|---|
comment:1 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
| Version: | SVN → newforms-admin |
|---|
Note:
See TracTickets
for help on using tickets.
(In [7524]) newforms-admin: Fixed #7227 -- Added missing import, thanks marinho.