mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 09:12:29 +03:00
IsModelInstanceOwnerOrIsAnonReadOnly in __all__
This commit is contained in:
parent
fcd026f506
commit
c42a111299
|
@ -13,6 +13,7 @@ __all__ = (
|
||||||
'BasePermission',
|
'BasePermission',
|
||||||
'FullAnonAccess',
|
'FullAnonAccess',
|
||||||
'IsAuthenticated',
|
'IsAuthenticated',
|
||||||
|
'IsModelInstanceOwnerOrIsAnonReadOnly',
|
||||||
'IsAdminUser',
|
'IsAdminUser',
|
||||||
'IsUserOrIsAnonReadOnly',
|
'IsUserOrIsAnonReadOnly',
|
||||||
'PerUserThrottling',
|
'PerUserThrottling',
|
||||||
|
|
|
@ -211,6 +211,7 @@ class Serializer(object):
|
||||||
raise _SkipField
|
raise _SkipField
|
||||||
|
|
||||||
def serialize_model(self, instance):
|
def serialize_model(self, instance):
|
||||||
|
print 'sdfff',self, instance
|
||||||
"""
|
"""
|
||||||
Given a model instance or dict, serialize it to a dict..
|
Given a model instance or dict, serialize it to a dict..
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user