mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 21:44:04 +03:00
Merge branch 'master' of git://github.com/tomchristie/django-rest-framework
This commit is contained in:
commit
b6913c516b
1
AUTHORS
1
AUTHORS
|
@ -17,6 +17,7 @@ Garcia Solero <garciasolero>
|
|||
Tom Drummond <devioustree>
|
||||
Danilo Bargen <gwrtheyrn>
|
||||
Andrew McCloud <amccloud>
|
||||
Thomas Steinacher <thomasst>
|
||||
|
||||
THANKS TO:
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ class IsAdminUser(BasePermission):
|
|||
"""
|
||||
|
||||
def check_permission(self, user):
|
||||
if not user.is_staff():
|
||||
if not user.is_staff:
|
||||
raise _403_FORBIDDEN_RESPONSE
|
||||
|
||||
|
||||
|
|
|
@ -106,7 +106,8 @@ class Serializer(object):
|
|||
|
||||
|
||||
def __init__(self, depth=None, stack=[], **kwargs):
|
||||
self.depth = depth or self.depth
|
||||
if depth is not None:
|
||||
self.depth = depth
|
||||
self.stack = stack
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user