mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 01:02:29 +03:00
IsModelInstanceOwnerOrIsAnonReadOnly in __all__
This commit is contained in:
parent
fcd026f506
commit
c42a111299
|
@ -13,6 +13,7 @@ __all__ = (
|
|||
'BasePermission',
|
||||
'FullAnonAccess',
|
||||
'IsAuthenticated',
|
||||
'IsModelInstanceOwnerOrIsAnonReadOnly',
|
||||
'IsAdminUser',
|
||||
'IsUserOrIsAnonReadOnly',
|
||||
'PerUserThrottling',
|
||||
|
|
|
@ -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..
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user