diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index aad013b25..b350d29bf 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -13,6 +13,7 @@ __all__ = ( 'BasePermission', 'FullAnonAccess', 'IsAuthenticated', + 'IsModelInstanceOwnerOrIsAnonReadOnly', 'IsAdminUser', 'IsUserOrIsAnonReadOnly', 'PerUserThrottling', diff --git a/djangorestframework/serializer.py b/djangorestframework/serializer.py index 71c0d93ae..e45e583b6 100644 --- a/djangorestframework/serializer.py +++ b/djangorestframework/serializer.py @@ -211,6 +211,7 @@ class Serializer(object): raise _SkipField def serialize_model(self, instance): + print 'sdfff',self, instance """ Given a model instance or dict, serialize it to a dict.. """