Fixed #28079 -- Restored "No POST data" (rather than an empty table) in HTML debug page.
Regression in 7b6dccc82f
This commit is contained in:
parent
89a080fc05
commit
8c6a3062dd
|
@ -299,7 +299,7 @@ class ExceptionReporter:
|
||||||
'frames': frames,
|
'frames': frames,
|
||||||
'request': self.request,
|
'request': self.request,
|
||||||
'user_str': user_str,
|
'user_str': user_str,
|
||||||
'filtered_POST_items': self.filter.get_post_parameters(self.request).items(),
|
'filtered_POST_items': list(self.filter.get_post_parameters(self.request).items()),
|
||||||
'settings': get_safe_settings(),
|
'settings': get_safe_settings(),
|
||||||
'sys_executable': sys.executable,
|
'sys_executable': sys.executable,
|
||||||
'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
|
'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
|
||||||
|
|
|
@ -21,3 +21,6 @@ Bugfixes
|
||||||
|
|
||||||
* Fixed ``QuerySet.filter()`` crash when it references the name of a
|
* Fixed ``QuerySet.filter()`` crash when it references the name of a
|
||||||
``OneToOneField`` primary key (:ticket:`28047`).
|
``OneToOneField`` primary key (:ticket:`28047`).
|
||||||
|
|
||||||
|
* Fixed empty POST data table appearing instead of "No POST data" in HTML debug
|
||||||
|
page (:ticket:`28079`).
|
||||||
|
|
|
@ -290,6 +290,7 @@ class ExceptionReporterTests(SimpleTestCase):
|
||||||
self.assertIn('<h2>Traceback ', html)
|
self.assertIn('<h2>Traceback ', html)
|
||||||
self.assertIn('<h2>Request information</h2>', html)
|
self.assertIn('<h2>Request information</h2>', html)
|
||||||
self.assertNotIn('<p>Request data not supplied</p>', html)
|
self.assertNotIn('<p>Request data not supplied</p>', html)
|
||||||
|
self.assertIn('<p>No POST data</p>', html)
|
||||||
|
|
||||||
def test_no_request(self):
|
def test_no_request(self):
|
||||||
"An exception report can be generated without request"
|
"An exception report can be generated without request"
|
||||||
|
|
Loading…
Reference in New Issue