Opened 5 years ago

Closed 2 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 5 years ago by russellm

  • milestone set to 1.2
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 5 years ago by ubernostrum

  • milestone 1.2 deleted

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

comment:3 Changed 4 years ago by mattmcc

  • Severity set to Normal
  • Type set to Cleanup/optimization

comment:4 Changed 3 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:5 Changed 3 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:6 Changed 2 years ago by ecabuk

  • Owner changed from nobody to ecabuk
  • Status changed from new to assigned

comment:7 Changed 2 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 2 years ago by claudep

  • Resolution set to worksforme
  • Status changed from assigned to closed

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