Re: Replacing a model instance's __dict__

2013-02-11 Thread Tom Evans
Thanks for the advice guys, I didn't like it much either - a Friday afternoon solution. I'll do something a little less brute force ;) Cheers Tom On Sat, Feb 9, 2013 at 11:22 AM, Bill Freeman wrote: > Tom, > > I suspect that there man be problematic, perhaps dependent on python > version, becau

Re: Replacing a model instance's __dict__

2013-02-09 Thread Bill Freeman
Tom, I suspect that there man be problematic, perhaps dependent on python version, because the __dict__ attribute itself is a slot (it couldn't, for example, be in the __dict__). Some slots may not accept assignment after creation, and the __dict__ object may not be an ordinary dict(). Separatel

Re: Replacing a model instance's __dict__

2013-02-08 Thread Daniel Roseman
On Friday, 8 February 2013 09:50:22 UTC-8, Tom Evans wrote: > Hi all > > I have a curious problem with a complex data replication issue. > > Basically, we use SalesForce as a CRM system. We also have a bunch of > users who aren't allowed a SF license due to cost reasons, and they > interact wi

Replacing a model instance's __dict__

2013-02-08 Thread Tom Evans
Hi all I have a curious problem with a complex data replication issue. Basically, we use SalesForce as a CRM system. We also have a bunch of users who aren't allowed a SF license due to cost reasons, and they interact with SF via our own Django website that communicates to SF via an API. With th