#30237: admin check for AuthenticationMiddleware should allow subclasses
-------------------------------------+-------------------------------------
     Reporter:  Alek Ratzloff        |                    Owner:  Herman S
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  2.2
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tameron NGUYEN):

 Replying to [comment:1 Tim Graham]:
 > The check is new in Django 2.2
 (371ece2f0682e51f2f796854d3e091827a7cea63). It might be possible to modify
 it so that it detects `AuthenticationMiddleware` subclasses. You could
 also simply add that error to your `SILENCED_SYSTEM_CHECKS` setting.

 Errors: ?: (admin.E408)
 'django.contrib.auth.middleware.AuthenticationMiddleware' must be in
 MIDDLEWARE in order to use the admin application.
 In settings.py, add

 {{{
 SILENCED_SYSTEM_CHECKS = [
     'admin.E408',
 ]
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30237#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.5ddacd8a2c951e487691e18a41918b72%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to