Opened 15 years ago
Closed 12 years ago
#12280 closed Cleanup/optimization (worksforme)
working with forms example should include editing an existing instance
Reported by: | johnsmith | Owned by: | ecabuk |
---|---|---|---|
Component: | Documentation | Version: | 1.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
http://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
The page is titled 'Working with forms' yet there is no example of editing and existing instance of a model. This example refers to 'the standard pattern' it should also cover the case
form = ContactForm(request.POST,instance=anInstance)
Change History (8)
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 years ago
milestone: | 1.2 |
---|
Punting from 1.2; we can always add this later when there's time.
comment:3 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Cleanup/optimization |
comment:6 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:7 by , 12 years ago
I think this ticket needs to be closed, there are lots of example about that on the documentation. Isn't that?
comment:8 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Thanks for checking, it might be that the documentation has evolved since the bug was open.
The suggested location is wrong as the docs referenced are talking about forms, not modelforms. However, the full example of modelforms could do with such an example.