Custom Query (27111 matches)


Show under each result:

Results (19 - 21 of 27111)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#29219 fixed Admin Changelist Filters Not Using Parsed Params nobody David Sanders

Several of the admin changelist filter classes pull parameters directly from `request.GET` despite having a dict of parsed params passed in. I consider this a bug because it's a bit of a split-brain issue, some of the code works with the passed in params, some of it works directly with request.GET, so there's not one consistent place to change behavior regarding params. Specific use case I ran into: if you want a filter which 'expands' to providing values for multiple other filters, overriding ChangeList.get_filters_params would seem like the logical place to do the parameter expansion, but doing so yields inconsistent results due to the direct use of request.GET for pulling parameters in some filters but not others (specifically DateFieldListFilter and SimpleListFilter respond as you'd expect, other filters do not). Having the filters pull from the provided params closes this loop and makes things act consistently.

#29218 invalid Custom URL converters break direct modules import nobody Sergey Fursov


I found this problem after conversion all urls in one of my projects to modern named params. I created custom URL Converter class and registered it in root url conf I test my project code using py.test with enabled doctest-modules option. With this option py.test imports all modules and search docstring tests in each. Same happens with individual modules, but direct module import fails with next stacktrace:

api/ in <module>
/usr/local/lib/python3.6/site-packages/django/urls/ in _path
    pattern = Pattern(route, name=name, is_endpoint=True)
/usr/local/lib/python3.6/site-packages/django/urls/ in __init__
    self.converters = _route_to_regex(str(route), is_endpoint)[1]
/usr/local/lib/python3.6/site-packages/django/urls/ in _route_to_regex
    "URL route '%s' uses invalid converter %s." % (original_route, e)
E   django.core.exceptions.ImproperlyConfigured: URL route 'modules/<slug:slug>/<uid:uid>/' uses invalid converter 'uid'.

I'm not sure if this issue should be solved inside Django itself, but I thought it would be helpful to report it.

#29217 fixed Small typo in spanish translation nobody LatinSuD

Hi. Here it says "Djando" instead of "Django":

It looks like it affects all versions (not only 2.0).

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.
Back to Top