#31270 closed Cleanup/optimization (fixed)
Documentation for RedirectView.get_redirect_url() doesn't describe its arguments.
Reported by: | Baptiste Mispelon | Owned by: | Hasan Ramezani |
---|---|---|---|
Component: | Documentation | Version: | 3.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The documentation for RedirectView.get_redirect_url()
[1] shows that the method takes *args, **kwargs
as arguments but doesn't explain what those are exactly.
I had to look at the code to be sure: args
and kwargs
are the groups captured in the URL. That's what I expected and it might be obvious but I still think it should be mentioned in this reference documentation.
I don't have immediate plans to work on this, anyone can pick this up. The file to modify is in docs/ref/class-based-views/base.txt
[2].
[1] https://docs.djangoproject.com/en/dev/ref/class-based-views/base/#django.views.generic.base.RedirectView.get_redirect_url
[2] https://github.com/django/django/blob/master/docs/ref/class-based-views/base.txt#L259
Change History (7)
comment:1 by , 5 years ago
Summary: | Documentation for RedirectView.get_redirect_url doesn't describe its arguments → Documentation for RedirectView.get_redirect_url doesn't describe its arguments. |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 5 years ago
Summary: | Documentation for RedirectView.get_redirect_url doesn't describe its arguments. → Documentation for RedirectView.get_redirect_url() doesn't describe its arguments. |
---|
comment:3 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 5 years ago
Has patch: | set |
---|
comment:5 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 2ab97af: