Intro Tutorial-- Poll/Choice SQL writes

10 views
Skip to first unread message

Gall

unread,
Aug 3, 2011, 8:36:40 PM8/3/11
to Django users
I'm working through the introductory tutorial @ djangoproject.com. Why
does the poll object require an explicit save() call, while choice
objects are inserted into the db instantaneously?

Daniel Roseman

unread,
Aug 4, 2011, 3:21:36 AM8/4/11
to django...@googlegroups.com
They're not. You must have misread. You always need to save.
--
DR.

Dan Poirier

unread,
Aug 4, 2011, 7:49:06 AM8/4/11
to django...@googlegroups.com

There are different ways to create objects, and some implicitly save
while others don't. It does not depend on what kind of object it is.

christian.posta

unread,
Aug 4, 2011, 9:41:48 AM8/4/11
to Django users
If you point me to exactly what part of the tutorial shows Choice
objects being saved instantaneously, I can explain it to you.
Reply all
Reply to author
Forward
0 new messages