#27440: add request as optional argument to django.urls.base.urls.reverse in
order
to get fully qualified URL
-------------------------------------+-------------------------------------
Reporter: Mislav | Owner: Mislav Cimperšak
Cimperšak |
Type: New | Status: assigned
feature |
Component: Core | Version: 1.10
(URLs) | Keywords: reverse, request,
Severity: Normal | full url
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I'm adding an optional argument `request` to
`django.urls.base.urls.reverse`method.
The idea is that using `request` object one can get a fully qualified url.
The idea is taken from Django Rest Framework
([https://github.com/tomchristie/django-rest-
framework/blob/master/rest_framework/reverse.py#L55-L59 link to it]).
I'm in Amsterdam on the sprint and plan to do it here.
The patch and few tests are already written, just need to add docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/27440>
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/058.f22cf602590aa6d36a87e865b25fb92d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.