Re: Skip session save on 500 responses

2012-07-05 Thread Luke Plant
On 05/07/12 16:25, Anssi Kääriäinen wrote: > Currently Django's session middleware saves sessions unconditionally > in process_response. I have created a patch which skips session save > on 500 responses. Reasons for this: > 1. When saving the session after PostgreSQL query error into database > b

Re: Customizing User model manager

2012-07-05 Thread Timothy Makobu
Ask this on django-users On Thu, Jul 5, 2012 at 11:50 AM, Tsachi wrote: > Hi, > I have a simple question, which I couldn't find an answer to it anywhere: > In a django project I'm working on, a deleted user is marked as * > is_active=False*. > *I need to custom the User manager to filter out al

Skip session save on 500 responses

2012-07-05 Thread Anssi Kääriäinen
Currently Django's session middleware saves sessions unconditionally in process_response. I have created a patch which skips session save on 500 responses. Reasons for this: 1. When saving the session after PostgreSQL query error into database backed session store, the save is guaranteed to fail d

Customizing User model manager

2012-07-05 Thread Tsachi
Hi, I have a simple question, which I couldn't find an answer to it anywhere: In a django project I'm working on, a deleted user is marked as * is_active=False*. *I need to custom the User manager to filter out all is_active=False users.* This is a project-wide requirement. In other words: I don't