#30040: Documentation on permissions on templates is wrong
-------------------------------------+-------------------------------------
Reporter: Adrian Samatan | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 2.1
Severity: Normal | Resolution:
Keywords: template | Triage Stage:
permissions documentation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Claude Paroz):
I think `can_vote` here is to be considered as any custom permission
codename added to some model, it does not refer to a default permission
name automatically created for models. The default names are `add_foo`,
`change_foo`, `delete_foo` (and since Django 2.1, `view_foo`).
So the question is: should we use a standard permission codename in the
examples instead of an arbitrary permission codename? I have no strong
opinion on this.
--
Ticket URL: <https://code.djangoproject.com/ticket/30040#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.10769cb1a040843e10d29affd4b9257a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.