forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed authorization if auth function returns False
* added mock to allow easier overwritting of auth functions * tested when authorization *_detail function returns False - tests were failing. i.e. request was authorized, when it shouldn't have been * updated code to raise an Unauthorized if *_detail functions return False
- Loading branch information
1 parent
905ae88
commit 2dff249
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ biplist | |
pyyaml | ||
mimeparse>=0.1.3 | ||
python-dateutil>=2.1 | ||
mock |