Re: Overriding Class-based View Form Validation

2014-12-11 Thread Curtis Maloney
Firstly, I think this query really belongs in django-users ... this list is about development _of_ django, not _with_ django. Secondly, why not override get_form_kwargs [1] to add the user into creating the form class? But yes, validation all belongs inside the form class, ideally. [1] https://

Re: Error accessing the table from an app with label changed

2014-12-11 Thread Tim Graham
I guess this is your ticket here: https://code.djangoproject.com/ticket/23981 I couldn't reproduce the issue so please provide more details. On Wednesday, December 10, 2014 2:19:41 PM UTC-5, Paulo Maciel wrote: > > I put in *db_table* the table name with the new label prefix and it > works, it

Re: Feature request: delegate more password related operations to auth backends (#23896)

2014-12-11 Thread Roman Akopov
I've researched a little more, and looks like there is BACKEND_SESSION_KEY so it is possible to annotate user with backend on subsequent requests. https://github.com/django/django/blob/master/django/contrib/auth/__init__.py#L169 Look like it should be a one line fix for this like user.backend = ba

Re: Feature request: delegate more password related operations to auth backends (#23896)

2014-12-11 Thread Roman Akopov
All right, that's what I've missed. Thank you, for this point. Existing LDAP backends I've reviewed do not support password change/reset at all. On Thursday, December 11, 2014 7:49:05 PM UTC+4, Tim Graham wrote: > > User is only annotated with backend when calling authenticate(). On > subseque

Re: Feature request: delegate more password related operations to auth backends (#23896)

2014-12-11 Thread Tim Graham
User is only annotated with backend when calling authenticate(). On subsequent requests, or in non-request situations like the Python shell, how will you know which backend to delegate to? How do existing LDAP backends deal with this problem? (or do they just ignore it?) On Thursday, December

Feature request: delegate more password related operations to auth backends (#23896)

2014-12-11 Thread Roman Akopov
Hello, This is my fist post, so I'm not fully aware of any posting policies you have, but at least I'll try to present my ideas in clear way. *Very brief description of what I suggest:* Optionally delegate password change and password reset to authentication backend. *Motivation:* Django