Re: Django 1.6 admin force db commit

2014-11-20 Thread Collin Anderson
Hi, Yes, I think the entire admin view is wrapped in @atomic, so I don't think it's possible to end the transaction before the view finishes. Maybe you could somehow handle it in a middleware? Collin On Monday, November 17, 2014 6:38:56 PM UTC-5, PRyan wrote: > > I'm trying to force a db comm

Re: Django 1.6 admin force db commit

2014-11-17 Thread PRyan
Sorry. I am trying this in model_save(). On Monday, November 17, 2014 4:38:56 PM UTC-7, PRyan wrote: > > I'm trying to force a db commit on our users admin page. I call obj.save() > then want to call sync_marketing(obj.id). When sync_marketing pulls the > User object from the db by the id, it ge

Django 1.6 admin force db commit

2014-11-17 Thread PRyan
I'm trying to force a db commit on our users admin page. I call obj.save() then want to call sync_marketing(obj.id). When sync_marketing pulls the User object from the db by the id, it gets the data before the save, not the data afterwards. sync_marketing is ran via celery (apply_async) and we