Django

Code

Ticket #3504 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Missing self in authentification doc

Reported by: bugs@almad.net Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

There is a typo in authentification doc, in part ow writing an authentification bakend:

class MyBackend?:

def authenticate(username=None, password=None):

# Check the username/password and return a User.

class MyBackend?:

def authenticate(token=None):

# Check the token and return a User.

There should be a self in arguments list, as they are class methods.

Attachments

3504-authentication.patch (0.8 kB) - added by Robert Myers <myer0052@gmail.com> on 02/19/07 20:57:06.
Added a patch to fix the documentation errors.

Change History

02/15/07 16:12:43 changed by Michael Radziej <mir@noris.de>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

02/19/07 20:57:06 changed by Robert Myers <myer0052@gmail.com>

  • attachment 3504-authentication.patch added.

Added a patch to fix the documentation errors.

02/19/07 20:58:31 changed by Robert Myers <myer0052@gmail.com>

  • has_patch set to 1.

02/22/07 10:01:18 changed by Per Jonsson <poj@lysator.liu.se>

  • stage changed from Accepted to Ready for checkin.

Looks good, patch is clean.

02/25/07 10:11:46 changed by jacob

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

(In [4572]) Fixed #3504: fixed a missing "self" in the authentication docs. Thanks, Robert Myers.


Add/Change #3504 (Missing self in authentification doc)




Change Properties
Action