summaryrefslogtreecommitdiff
path: root/django/contrib/admindocs/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34286 -- Fixed admindocs markups for case-sensitive template/view names.skidipap2023-02-021-1/+4
|
* Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal ↵Mariusz Felisiak2022-09-011-44/+0
| | | | | | | URLResolver view-strings mapping to admindocs." This reverts commit 7f3cfaa12b28d15c0ca78bb692bfd6e59d17bff1. Thanks Tom Carrick and Greg Kaleka for reports.
* Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs.Alokik Vijay2022-05-171-0/+44
| | | | | | Moved the functionality of URLResolver._is_callback(), URLResolver._callback_strs, URLPattern.lookup_str() to django.contrib.admindocs.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-42/+55
|
* Fixed #28135 -- Made simplify_regex() handle non-capturing groups.Ayush Joshi2022-01-141-1/+17
|
* Refs #28135 -- Refactored out _find_groups()/_get_group_start_end() hooks in ↵Ayush Joshi2022-01-131-64/+36
| | | | admindocs.
* Fixed #32499 -- Escaped additional metacharacters in simplify_regex().Nick Pope2021-09-221-1/+1
|
* Refs #32499 -- Fixed escaped metacharacters in simplify_regex().Nick Pope2021-09-221-1/+5
|
* Refs #32499 -- Added metacharacters helper for simplify_regex().Nick Pope2021-09-221-0/+5
|
* Refs #32260 -- Made admindocs and technical 404 debug page use ↵Adam Johnson2021-03-301-0/+3
| | | | | | | view_func.view_class. Internals of admindocs and technical 404 debug page should use the view_class attribute and do not rely on __name__.
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Fixed #30255 -- Fixed admindocs errors when rendering docstrings without ↵Baptiste Mispelon2019-11-291-16/+4
| | | | | | | leading newlines. Used inspect.cleandoc() which implements PEP-257 instead of an internal hook.
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-2/+3
|
* Fixed #30731 -- Fixed handling trailing groups in simplify_regex().Alan Crosswell2019-08-301-10/+12
| | | | | Previously simplify_regex() didn't handle trailing groups for regexp without the end of string character ("$").
* Removed unneeded list() calls in enumerate() argument.Sergey Fedoseev2019-02-121-2/+2
|
* Removed unused variables.Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-091-4/+0
|
* Refs #27795 -- Removed force_bytes() usage in admindocs.Jon Dufresne2018-10-021-2/+1
| | | Refs #12892 is probably obsolete.
* Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.Paul Donohue2018-04-121-0/+6
|
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-2/+1
|
* Fixed #26621 -- Corrected simplify_regex()'s handling of named capture groups.Ketan Bhatt2017-01-031-0/+91
|
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-141-0/+2
|
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-3/+5
|
* Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek2015-12-311-1/+1
| | | | Thanks to Tim Graham for the review.
* Fixed #25667 -- Fixed admindocs initial_header_level.Ville Skyttä2015-12-021-1/+1
|
* Fixed #24625 -- Prevented arbitrary file inclusion in admindocsMarkus Holtermann2015-04-111-1/+3
| | | | Thanks Tim Graham for the review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+3
|
* Changed docstrings in admindocs/utils to comply to PEP 257Zan Anderle2014-11-031-3/+3
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-2/+18
| | | | refs #23395.
* Started attackign the next flake8 violationAlex Gaynor2013-10-311-0/+5
|
* Fixed all the E203 violationsAlex Gaynor2013-10-261-9/+9
|
* Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol2013-10-171-4/+8
|
* Fixed #6681 -- Don't break docutils when rendering reStructuredText.Tai Lee2013-10-041-4/+12
| | | | | | | | Don't set a global default interpreted role function for reStructuredText. Instead, use the `default-role` directive to change the default only within the `parse_rst()` function. Thanks Malcolm Tredinnick for the report.
* Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette2013-08-301-1/+1
|
* Replaced many smart_bytes by force_bytesClaude Paroz2012-08-291-2/+2
| | | | | | In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-2/+2
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* Fixed a bunch of imports of the email stdlib module now that we are on ↵Jannis Leidel2011-09-091-2/+3
| | | | | | Python 2.5 to ease the Python 3 port. Thanks, Martin von Löwis. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12892 - Fixed unicode related bug in a utility function of the ↵Jannis Leidel2010-05-101-1/+2
| | | | | | admindocs app that prevented it to be used in non-English environments together with certain versions of docutils. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8971: correctly reverse urls in admindocs reST roles. Thanks, mitsuhiko.Jacob Kaplan-Moss2009-05-071-2/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@10683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged the newforms-admin branch into trunk.Brian Rosner2008-07-181-0/+103
This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37