Re: #3011 - Custom User Models -- Call for final review

2012-10-27 Thread Ludwig Kraatz
Hi Russ, > > > - The last_login field is in the AbstractBaseUser, but it isn't > > documented as a required field. Is this field required for something? > > Is it needed as part of AbstractBaseUser? > > Yes, last_login is required - it's needed in order to generate > password reset tokens

Re: #3011 - Custom User Models -- Call for final review

2012-10-28 Thread Ludwig Kraatz
. So thanks you took the time to think abt it. Nice job anyway! best regards ludwig Am Sonntag, 28. Oktober 2012 02:05:47 UTC+2 schrieb Russell Keith-Magee: > > > On Sat, Oct 27, 2012 at 7:25 PM, Ludwig Kraatz > > > wrote: > >> Hi Russ, >> >> >>&

Re: Custom user models in 1.5, not flexible/dry enough?

2012-11-08 Thread Ludwig Kraatz
If you ask me this just points out to some point i mentioned in the original Custom UserModel Thread. I'm trying to reframe it again. I think the current django.contrib.auth *app* somehow behaves like some mixture of django.core._mixins_everyone_should_use_to_make_apps_interoperability and cont

RedirectView supporting View-Names

2012-11-23 Thread Ludwig Kraatz
Hi, is there a specific reason why the RedirectView does not have a "view_name" attribute and out-of-the-box supporting to reverse it? if self.url: url = self.url elif self.view_name: url = reverse(self.view_name, kwargs=kwargs, request=request) else: return None best rega

Re: RedirectView supporting View-Names

2012-11-25 Thread Ludwig Kraatz
Well, ... I know about reverse_lazy Sorry for not explaining myself good enough: reverse_lazy can't do: url( 'bar/foo/(?P[0-9]*)/', *RedirectView*( url= *reverse_lazy*('foo_stuff') ), url( 'foo/(?P[0-9]*)/', some_view_func, name = 'foo_stuff' ), What a RedirectView supporting URL Names (..