On Thursday, April 28, 2016 at 10:48:02 PM UTC+2, Shai Berger wrote:
>
> The problem with these suggestions is that they create a user object 
> during 
> checks, and that might be an obstacle for some users (side effects and 
> required 
> initializer parameters are the two most obvious issues). 
>

cls() would only go through model.__init__ which is imo an implementation 
detail unless one knows what they are doing -- so sideeffects or required 
params should not be an issue here (would probably not work well if you 
ever want to load a user from the db etc anyways…) 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/31d9ae1f-9898-4c5c-ba21-4f5e855218ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to