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

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

Sitemaps - multiple locations per object

2014-09-17 Thread PRyan
Hello, I have business objects which have multiple urls each. The sitemap for the business objects them self work and I get the following: /store/ However, each business has sites specific to it. So I need sitemaps to create: /store/ /store//contact /store//about Is there a way I can get Sitema

Converting to Custom User Model (Django 1.5)

2014-07-21 Thread PRyan
We are currently using the following user model setup: settings.py: AUTH_USER_MODEL = 'auth.User' userprofile.py: class UserProfile(DirtyFieldsMixin, User): Is it possible to change these to the following and have South take care of the data as not lose anything? settings.py: AUTH_USER_MODEL =