Adding permission IsModelInstanceOwnerOrIsAnonReadOnly

This commit is contained in:
Camille Harang 2012-02-02 03:06:40 +01:00
parent 52ac21ca3e
commit d44a6c5a69

View File

@ -530,7 +530,7 @@ class ModelMixin(object):
@property
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