#11154: Inconsistency with permissions for proxy models
-------------------------------------+--------------------------------------
Reporter: etianen | Owner: nobody
Status: new | Milestone: 1.3
Component: Authentication | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Comment (by DrMeers):
> Proxy models should also proxy the permissions of the model they are
shadowing
Are you sure about that Malcolm? Proxy models could be quite useful for
limiting permissions to a subset of objects.
For example, I could make a {{{Student}}} proxy for {{{User}}} with a
manager whose {{{get_query_set}}} returns only {{{Users}}} in the
"student" {{{Group}}}, and a {{{save}}} method which automatically assigns
{{{User}}}s to that group. What if I'd then like to restrict
{{{Teacher}}}s to only being able to add/change/delete {{{Student}}}s and
not {{{User}}}s in general?
--
Ticket URL: <http://code.djangoproject.com/ticket/11154#comment:12>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.