mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 09:12:29 +03:00
Adding permission IsModelInstanceOwnerOrIsAnonReadOnly
This commit is contained in:
parent
52ac21ca3e
commit
d44a6c5a69
|
@ -530,7 +530,7 @@ class ModelMixin(object):
|
||||||
@property
|
@property
|
||||||
def model_instance(self):
|
def model_instance(self):
|
||||||
"""
|
"""
|
||||||
Returns the model instance for read/update/delete, or None if does not exit.
|
Returns the model instance for read/update/delete, or None if does not exist.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if hasattr(self, '_model_instance'): return self._model_instance
|
if hasattr(self, '_model_instance'): return self._model_instance
|
||||||
|
|
Loading…
Reference in New Issue
Block a user