Friday, April 23, 2010

Filtering for an object that is modified in memory loses those modifications?

I have a situation where I have a handle to a db object and I've
modified a field in it. Then I later end up executing a filter that
finds that same object (among others) and saves all of the objects it
finds. In this situation the modified fields do not get saved out.
It's like the filter is getting the object directly from the database,
as opposed to getting the object that is in memory and modified (but
not yet saved).

Is this the expected behavior?

Margie

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate