diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:39:46 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:39:46 +0000 |
| commit | 4d7390265373b5601d3a0a4c681a7f819baf7c4a (patch) | |
| tree | 8265e83c744532c58080bf25c094beb87f2f8640 /docs/_static/default.css | |
| parent | 2f0e6d5595acbc517f9fba7dc25bda2b7899dd20 (diff) | |
[soc2009/model-validation] Split save_instance into make and save_made
had to add a magical attribute __adding on ModelForm to indicate whether
we are editting or adding a model. This will be later passed into the
model's .clean() method since it is necessary for correctly validating
uniques (see it's current use) and can also be used to define
force_insert or force_update params to model.save()
Also beginning with this commit, .instance attribute is present on ModelForm
and should be used to do any post-processing since manipulation of the
cleaned_data will not work
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_static/default.css')
0 files changed, 0 insertions, 0 deletions
