Update URL patterns to use new path() and re_path().
Review Request #12022 — Created Jan. 29, 2022 and submitted — Latest diff uploaded
Django 2+ provides a new method for definings URLs,
path()
. This is
much simpler for basic cases, and makes URL patterns more readable. In
addition, the oldurl()
method has been renamed tore_path()
, and a
warning is raised when using the old name, so switch to that too.As part of this, I changed the file attachment URLs to actually parse
UUIDs using Django's new converter for that. This required making a
change in the testcreate_file_attachment_base
method to use real
UUIDs instead of the string "test-uuid".
Ran unit tests.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
Commits
Files
docs/manual/extending/extensions/configuration.rst |
---|
docs/manual/extending/extensions/hooks/url-hook.rst |
---|
reviewboard/urls.py |
---|
reviewboard/accounts/urls.py |
---|
reviewboard/admin/urls.py |
---|
reviewboard/cmdline/rbext.py |
---|
reviewboard/datagrids/urls.py |
---|
reviewboard/hostingsvcs/beanstalk.py |
---|
reviewboard/hostingsvcs/bitbucket.py |
---|
reviewboard/hostingsvcs/github.py |
---|
reviewboard/hostingsvcs/rbgateway.py |
---|
reviewboard/hostingsvcs/service.py |
---|
reviewboard/hostingsvcs/urls.py |
---|
reviewboard/hostingsvcs/tests/test_registration.py |
---|
reviewboard/notifications/tests/test_email_sending.py |
---|
reviewboard/oauth/urls.py |
---|
reviewboard/reviews/urls.py |
---|
reviewboard/scmtools/admin.py |
---|
reviewboard/search/urls.py |
---|
reviewboard/testing/testcase.py |
---|
reviewboard/webapi/tests/test_base.py |
---|