Django Pattern: get_allowed_or_404 (3oh2.com)

1 points by jbox ↗ HN
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.

0 comments

[ 3.2 ms ] story [ 13.0 ms ] thread

No comments yet.