summaryrefslogtreecommitdiff
path: root/django/views
AgeCommit message (Collapse)Author
2021-11-09[4.0.x] Refs #33263 -- Added warning to BaseDeleteView when delete() method ↵Mariusz Felisiak
is overridden. Follow up to 3a45fea0832c5910acee6e0d29f230f347a50462. Backport of 6bc437c0d82675ebe6aa92c8e249892205c316ef from main
2021-09-10Fixed #33096 -- Fixed <form> nesting in technical 500 template.Jan Schär
This also prevents sending <form> tags in emails.
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-07-14Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵Carlton Gibson
SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com>
2021-06-25Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using ↵Mateo Radman
"assert" in various code.
2021-05-12Fixed #32366 -- Updated datetime module usage to recommended approach.Nick Pope
- Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp().
2021-04-30Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ↵Hasan Ramezani
ExceptionReporter._get_raw_insecure_uri().
2021-04-27Refs 32637 -- Made technical 404 debug page display exception message when ↵Mariusz Felisiak
URL is resolved. Follow up to 3b8527e32b665df91622649550813bb1ec9a9251.
2021-04-13Fixed #32637 -- Restored exception message on technical 404 debug page.Mariusz Felisiak
Thanks Atul Varma for the report.
2021-04-09Fixed #32624 -- Avoided using JavaScript for "Local vars" show/hide in ↵Collin Anderson
technical 500 debug page.
2021-04-01Fixed #32316 -- Deferred accessing __file__.William Schwartz
Deferred accessing the module-global variable __file__ because the Python import API does not guarantee it always exists—in particular, it does not exist in certain "frozen" environments. The following changes advanced this goal. Thanks to Carlton Gibson, Tom Forbes, Mariusz Felisiak, and Shreyas Ravi for review and feedback.
2021-03-31Refs #32105 -- Moved ExceptionReporter template paths to properties.William Schwartz
Refs #32316.
2021-03-30Fixed #32260 -- Made View.as_view() do not use update_wrapper().Daniyal
View.as_view() should not use update_wrapper() for copying attributes it's unintended and have side-effects such as adding `self` to the signature. This also fixes system check for arguments of custom error handler views with class-based views. Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2021-03-30Refs #32260 -- Made admindocs and technical 404 debug page use ↵Adam Johnson
view_func.view_class. Internals of admindocs and technical 404 debug page should use the view_class attribute and do not rely on __name__.
2021-02-24Fixed #32480 -- Corrected docstring and removed redundant comments in ↵BeryCZ
django/views/defaults.py.
2021-02-24Refs #32468 -- Added error message on invalid usage of cache decorators.Haki Benita
2021-01-29Fixed #32345 -- Fixed preserving encoded query strings in set_language() view.Sandro Covo
Thanks Johannes Maron for the review.
2021-01-14Refs #15902 -- Stopped set_language() storing user's language in the session.Mariusz Felisiak
Per deprecation timeline.
2020-11-24Improved bidirectionality on the 'Congrats' page.Thibaud Colas
Follow up to 9012033138fa41b573d3e4e3f0dfa8b94a4719c6.
2020-11-20Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page.Thibaud Colas
- Add lang attribute. - Use the same text for the page’s main heading, and title. - Add underlines for all links in copy. - Stop using h2 for link to the Django page. - Use h1 for the main heading. - Remove useless type attribute on style element. - Remove grey text that fails contrast checks. - Use a shade of grey that passes AAA contrast requirements. - Stop using h4 for footer links. - Add full stop in block-level links so VoiceOver correctly pauses between runs of text. - Hide main artwork for screen reader users. - Update SVG icons markup to be screen-reader friendly. - Switch options to be block-level links. - Remove unused markup.
2020-11-20Added explicit HTMLElement.dir attribute in templates.Author: Nick Pope
2020-11-10Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani
tracebacks.
2020-10-22Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior.Carlton Gibson
2020-10-15Refs #31672 -- Simplified ExceptionReporter.get_traceback_frames().Chris Jerdonek
2020-10-15Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela
This allows replacement of the debugging templates without having to copy-paste the `get_traceback_html` and `get_traceback_text` functions into a subclass. Thanks to Nick Pope for review.
2020-10-12Fixed #31674 -- Fixed displaying traceback in technical 500 debug page.Hasan Ramezani
Previously, the technical 500 debug page didn't contain a traceback when the exception chain contained an exception without traceback. Thanks Chris Jerdonek for the report.
2020-10-12Fixed #32087 -- Made technical 500 debug page use HTTPS for sharing traceback.nik258heda
2020-10-01Fixed #32051 -- Fixed rocket animation on the 'Congrats' page.Thibaud Colas
- Fixed congratulations smoke being cropped. - Refactored congratulation rocket so the animation can be stopped. - Made animation respect user preference for reduced animation. - Made rocket animation stop after 7s.
2020-10-01Refs #32051 -- Cleaned up CSS and SVG in the 'Congrats' page.Thibaud Colas
- Removed unnecessary vendor prefixes. - Removed unused CSS and SVG code. - Removed invalid CSS. - Removed IE9-only browser reset styles. - Fixed animation on Firefox.
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-09-07Fixed #31791 -- Made technical 404 debug page display the tried URL patterns ↵Jon Dufresne
for Http404.
2020-08-26Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé
non-string keys.
2020-08-24Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing ↵Mariusz Felisiak
URL kwargs into context." This reverts commit 4ed534758cb6a11df9f49baddecca5a6cdda9311.
2020-08-24Refs #31877 -- Reverted "Fixes #31877 -- Used lazy() for TemplateView kwarg ↵Mariusz Felisiak
deprecation warning." This reverts commit 20799cc0a6d98816b9ef0577e24691bd26b80d7d.
2020-08-13Fixes #31877 -- Used lazy() for TemplateView kwarg deprecation warning.Adam Johnson
SimpleLazyObjects cause a crash when filtering. Thanks Tim L. White for the report. Regression in 4ed534758cb6a11df9f49baddecca5a6cdda9311.
2020-08-05Refs #31493 -- Replaced var with const and let in JavaScriptCatalog template.Claude Paroz
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-07-13Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes
2020-07-08Refs #30400 -- Improved typography in debug and csrf templates.Jon Dufresne
2020-07-01Simplified JavaScript with Array.prototype.includes().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
2020-06-26Fixed #31620 -- Added support for %V format to WeekMixin/WeekArchiveView.Hasan Ramezani
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-06-10Fixed #31675 -- Added warning to ExceptionReporter when exception chain has ↵Hasan Ramezani
a cycle.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-05Fixed #31534 -- Deprecated django.conf.urls.url().David Smith
2020-04-15Fixed #31451 -- Made settings cleansing work with list and tuple settings.Ichlasul Affan
2020-04-09Fixed #30779 -- Improved selection of filenames in technical 500 debug page.Daniel Hahler
2020-03-23Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context.Adam Johnson
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2020-01-27Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz
2020-01-16Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak