Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14994 closed (fixed)

Example in auth docs emits DeprecationWarning

Reported by: kmike Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The 'SettingsBackend' auth backend in example ( http://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend ) should have 'supports_anonymous_user', 'supports_inactive_user' and 'supports_object_permissions' defined.

Attachments (1)

docs.topics.auth.patch (672 bytes) - added by ojii 3 years ago.
Patch for docs/topics/auth.txt

Download all attachments as: .zip

Change History (6)

comment:1 Changed 3 years ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 3 years ago by ojii

Patch for docs/topics/auth.txt

comment:2 Changed 3 years ago by ojii

  • Has patch set

comment:3 Changed 3 years ago by russellm

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 3 years ago by timo

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

(In [15137]) Fixed #14994 - Add attributes to example auth backend which would emit DeprecationWarning otherwise. Thanks kmike for the report and ojii for the patch.

comment:5 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.