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 Russell Keith-Magee, 15 years ago

milestone: 1.2
Triage Stage: UnreviewedAccepted

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.

comment:2 by James Bennett, 15 years ago

milestone: 1.2

Punting from 1.2; we can always add this later when there's time.

comment:3 by Matt McClanahan, 14 years ago

Severity: Normal
Type: Cleanup/optimization

comment:4 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:5 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:6 by ecabuk, 12 years ago

Owner: changed from nobody to ecabuk
Status: newassigned

comment:7 by ecabuk, 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 Claude Paroz, 12 years ago

Resolution: worksforme
Status: assignedclosed

Thanks for checking, it might be that the documentation has evolved since the bug was open.

Note: See TracTickets for help on using tickets.
Back to Top