Re: create_or_update() shortcut

2007-08-02 Thread Nathaniel Whiteinge
On Aug 2, 3:01 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > We have the shortcut get_or_create() [1], but whats about a > create_or_update() ? One exists as a patch_. I've been using it with the current svn for a while without problems. I find that an update_or_create() shortcut is particularly

Re: create_or_update() shortcut

2007-08-02 Thread Don Arbow
On Aug 2, 2007, at 2:01 AM, Jens Diemer wrote: > > We have the shortcut get_or_create() [1], but whats about a > create_or_update() ? > > [1] http://www.djangoproject.com/documentation/db-api/#get-or- > create-kwargs The shortcut already exists, it's called save(). http://www.djangoproject.c

create_or_update() shortcut

2007-08-02 Thread Jens Diemer
We have the shortcut get_or_create() [1], but whats about a create_or_update() ? [1] http://www.djangoproject.com/documentation/db-api/#get-or-create-kwargs -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You rece