ReadModelMixin and UpdateModelMixin store model instance as a property. This allows ModelResource to bind the ModelForm using the model instance making the form validate the input data against the model instance and not a brand new instance. When the latter happened and the model used unique fields, the form validation failed whenever a PUT was maintaining the previuos value of the unique field.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
runtests | Loading commit data... | |
static | Loading commit data... | |
templates | Loading commit data... | |
templatetags | Loading commit data... | |
tests | Loading commit data... | |
utils | Loading commit data... | |
__init__.py | Loading commit data... | |
authentication.py | Loading commit data... | |
compat.py | Loading commit data... | |
mixins.py | Loading commit data... | |
models.py | Loading commit data... | |
parsers.py | Loading commit data... | |
permissions.py | Loading commit data... | |
renderers.py | Loading commit data... | |
resources.py | Loading commit data... | |
response.py | Loading commit data... | |
serializer.py | Loading commit data... | |
status.py | Loading commit data... | |
urls.py | Loading commit data... | |
views.py | Loading commit data... |