On Feb 26, 2:35 pm, "[email protected]"
<[email protected]> wrote:
> maybe like this?:
>
> def up(model, **kw):
>     m.objects.filter(pk=model.pk).update(**kw)

too kewt. .update only works on a recordset-in-progress, and
so .update saves the record in one line.

But... it can't change model at the same time, which is a
prerequisite. Otherwise you must reload the model, and Django has
no .reload() I can find...

I must continue using Ethan's suggestion.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to