Django

Code

Ticket #7227 (closed: fixed)

Opened 2 months ago

Last modified 2 months ago

'authenticate' method not declared in comments

Reported by: marinho Assigned to: nobody
Milestone: Component: django.contrib.comments
Version: newforms-admin Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

patch_comments.diff (475 bytes) - added by marinho on 05/13/08 04:56:35.

Change History

05/13/08 04:56:35 changed by marinho

  • attachment patch_comments.diff added.

05/13/08 09:38:32 changed by gwilson

  • status changed from new to closed.
  • resolution set to fixed.

(In [7524]) newforms-admin: Fixed #7227 -- Added missing import, thanks marinho.

05/13/08 09:39:09 changed by gwilson

  • needs_better_patch changed.
  • version changed from SVN to newforms-admin.
  • needs_tests changed.
  • needs_docs changed.

Add/Change #7227 ('authenticate' method not declared in comments)




Change Properties
Action