Opened 13 years ago

Closed 13 years ago

Last modified 13 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: no UI/UX: no


In the Methods section ( )

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.permissions = [permission_list]
myuser.objects.permissions.add(permission, permission, ...)
myuser.objects.permissions.remove(permission, permission, ...]

However this is invalid - it should read as follows:

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

Change History (1)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top