Merge branch 'master' of git://github.com/tomchristie/django-rest-framework

This commit is contained in:
Jens Alm 2011-10-01 12:59:32 +02:00
commit b6913c516b
3 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@ Garcia Solero <garciasolero>
Tom Drummond <devioustree>
Danilo Bargen <gwrtheyrn>
Andrew McCloud <amccloud>
Thomas Steinacher <thomasst>
THANKS TO:

View File

@ -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

View File

@ -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