Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2687 closed defect (fixed)

Invalid example in user auth docs

Reported by: Collin Grady <cgrady@…> Owned by: jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In the Methods section ( http://www.djangoproject.com/documentation/authentication/#id5 )

The docs contain the following example:

myuser.objects.groups = [group_list]
myuser.objects.groups.add(group, group,...)
myuser.objects.groups.remove(group, group,...)
myuser.objects.groups.clear()
myuser.objects.permissions = [permission_list]
myuser.objects.permissions.add(permission, permission, ...)
myuser.objects.permissions.remove(permission, permission, ...]
myuser.objects.permissions.clear()

However this is invalid - it should read as follows:

myuser.groups = [group_list]
myuser.groups.add(group, group,...)
myuser.groups.remove(group, group,...)
myuser.groups.clear()
myuser.permissions = [permission_list]
myuser.permissions.add(permission, permission, ...)
myuser.permissions.remove(permission, permission, ...]
myuser.permissions.clear()

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by adrian

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

(In [3747]) Fixed #2687 -- Fixed bug in docs/authentication.txt. Thanks, Collin Grady

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.