-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify update_admin_role with get_object_or_404
If the membership to update cannot be found, use the standard status code 404. Also allows using django shortcuts.
- Loading branch information
1 parent
7ca047f
commit ec010c5
Showing
1 changed file
with
6 additions
and
8 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