Re: user_passes_test decorator changes in 1.2

2010-01-07 Thread Gary Reynolds
> > Yes, that definitely falls into the category of relying on an > implementation detail, rather than something that should be mentioned > as a backwards incompatibility. At the level of inspecting code > objects (which is essentially what your code was doing), almost any > change is backwards

Re: user_passes_test decorator changes in 1.2

2010-01-06 Thread Luke Plant
On Thursday 07 January 2010 00:12:08 gaz wrote: > However I thought I'd drop a line here since this isn't in the > backwards incompatible changes listed for 1.2 (I guess I'm possibly > already playing with voodoo, view_func isn't really documented so > it's my own fault I guess). Yes, that

user_passes_test decorator changes in 1.2

2010-01-06 Thread gaz
Hi there, I've just downloaded the 1.2 alpha and started testing it with one of my projects. For the most part it works well, however I've hit a bit of a snag due to the changes to the user_passes_test decorator in django.contrib.auth.decorators. I have a some code which follows the paradigm of: