mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-25 05:01:28 +03:00
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. |
||
|---|---|---|
| .. | ||
| runtests | ||
| static | ||
| templates | ||
| templatetags | ||
| tests | ||
| utils | ||
| __init__.py | ||
| authentication.py | ||
| compat.py | ||
| mixins.py | ||
| models.py | ||
| parsers.py | ||
| permissions.py | ||
| renderers.py | ||
| resources.py | ||
| response.py | ||
| serializer.py | ||
| status.py | ||
| urls.py | ||
| views.py | ||