#23993: Default admin login.html form doesn't respect custom AuthenticationForm
Media assets.
-------------------------------+------------------------------------
     Reporter:  Sveder         |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.7
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by Sveder):

 Replying to [comment:1 berkerpeksag]:
 > How did you replace the admin authentication form? If you replace it by
 overriding `AdminSite.login_form`, you can also override the
 `AdminSite.login_template` attribute and set your custom login template
 path.

 That is indeed the workaround but it's not a good solution as you need to
 keep updating your new "custom" login html with whatever changes happen in
 Django. I think the idiomatic way to do it (for now) is using Media, and
 it should work as expected. Thank you for noting the workaround though, in
 case other people stumble over this.

--
Ticket URL: <https://code.djangoproject.com/ticket/23993#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.fe99b869b11869b5ced04e788c8eeff7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to