Opened 17 years ago

Last modified 13 years ago

#5450 closed

Save_m2m in forms created by form for model should take a instance argument. — at Initial Version

Reported by: Øyvind Saltvik <oyvind@…> Owned by: nobody
Component: Database layer (models, ORM) Version: dev
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

{{

object = form.save(commit=False)
object.foofield = 'something'
object.save()
form.save_m2m() # would save to a unsaved instance

form.save_m2m(object) # would be better

}}}

Change History (1)

by Øyvind Saltvik <oyvind@…>, 17 years ago

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