diff options
| author | Fernando Zunino | 2011-07-01 03:32:04 -0300 |
|---|---|---|
| committer | Fernando Zunino | 2011-07-01 03:32:04 -0300 |
| commit | 60cd5363ab1343260c4ed8322d2d26064d56c3d3 (patch) | |
| tree | c3eaa03a47bc84eb2f89324cf30e57cfd0fa3e3f /docs/howto | |
| parent | 8bafa01abd9bcc104aa413f09ab9505abb3526a2 (diff) | |
| download | django-rest-framework-60cd5363ab1343260c4ed8322d2d26064d56c3d3.tar.bz2 | |
FIX: ModelViews can have Resources whose models have unique fields.
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.
Diffstat (limited to 'docs/howto')
0 files changed, 0 insertions, 0 deletions
