#25695: csrf_failure view should take a template parameter
-------------------------------+--------------------
     Reporter:  raphaelm       |      Owner:  nobody
         Type:  New feature    |     Status:  new
    Component:  Uncategorized  |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The default CSRF failure view (`django.views.csrf.csrf_failure`) should
 take an optional `template` parameter, just as the HTTP error views (e.g.
 `django.views.defaults.page_not_found`) do to make it easier to overwrite
 the view while retaining the template rendering context of the default
 view.

 Currently, it is necessary to copy over the view to your own codebase,
 which is very unclean.

 I will prepare a pull request for this ticket if it gets accepted.

--
Ticket URL: <https://code.djangoproject.com/ticket/25695>
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/051.d6dd3d58409065bfc1209e2839735adf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to