From c42a1112996e45caec4ab6d0f74d0bb77907268e Mon Sep 17 00:00:00 2001 From: Camille Harang Date: Thu, 2 Feb 2012 16:12:07 +0100 Subject: [PATCH] IsModelInstanceOwnerOrIsAnonReadOnly in __all__ --- djangorestframework/permissions.py | 1 + djangorestframework/serializer.py | 1 + 2 files changed, 2 insertions(+) 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.. """