Opened 7 years ago

Closed 4 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 Changed 7 years ago by Russell Keith-Magee

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 Changed 7 years ago by James Bennett

milestone: 1.2

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

comment:3 Changed 6 years ago by Matt McClanahan

Severity: Normal
Type: Cleanup/optimization

comment:4 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:5 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:6 Changed 4 years ago by ecabuk

Owner: changed from nobody to ecabuk
Status: newassigned

comment:7 Changed 4 years ago by ecabuk

I think this ticket needs to be closed, there are lots of example about that on the documentation. Isn't that?

comment:8 Changed 4 years ago by Claude Paroz

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