Django Pattern: get_allowed_or_404
http://www.3oh2.com/2009/12/23/django-pattern-get_allowed_or_404/
In Django, a common view pattern is to protect access to a resource by user ownership. This article discusses how to allow staff to access any resource while still restricting regular user access.
(
no comments
| on HN
)
There are no comments yet.