On Thursday, March 24, 2016 at 12:07:14 AM UTC+1, Matt wrote:
>
> >  the ModelBackend uses the Permission model, so why would that ever work 
> without beeing in INSTALLED_APPS?
>
> ModelBackend.authenticate() doesn't use the permissions models. And that's 
> the method that gets used when authenticating a user. If I did something 
> like `user.has_perm()`, things would blow up. But that is easy to override 
> on your custom User class.
>

Fair enough.
 

> > the context_processor will break due to the AnonymousUser most likely
>
> Hmm, right...I suppose AnonymousUser could be refactored into base_user.py.
>

Yes, but we should keep an import in models.py for compatibility.

-- 
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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
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/25bad5a6-be9c-4095-b489-b0c08a1709d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to