urls: Elide str converter, which is the default.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-09-11 19:25:00 -07:00 committed by Tim Abbott
parent 2632317b06
commit 1c80188648
3 changed files with 8 additions and 8 deletions

View File

@ -10,12 +10,12 @@ i18n_urlpatterns = [
name='analytics.views.get_activity'),
path('activity/support', analytics.views.support,
name='analytics.views.support'),
path('realm_activity/<str:realm_str>/', analytics.views.get_realm_activity,
path('realm_activity/<realm_str>/', analytics.views.get_realm_activity,
name='analytics.views.get_realm_activity'),
path('user_activity/<str:email>/', analytics.views.get_user_activity,
path('user_activity/<email>/', analytics.views.get_user_activity,
name='analytics.views.get_user_activity'),
path('stats/realm/<str:realm_str>/', analytics.views.stats_for_realm,
path('stats/realm/<realm_str>/', analytics.views.stats_for_realm,
name='analytics.views.stats_for_realm'),
path('stats/installation', analytics.views.stats_for_installation,
name='analytics.views.stats_for_installation'),
@ -43,7 +43,7 @@ v1_api_and_json_patterns = [
# get data for the graphs at /stats
path('analytics/chart_data', rest_dispatch,
{'GET': 'analytics.views.get_chart_data'}),
path('analytics/chart_data/realm/<str:realm_str>', rest_dispatch,
path('analytics/chart_data/realm/<realm_str>', rest_dispatch,
{'GET': 'analytics.views.get_chart_data_for_realm'}),
path('analytics/chart_data/installation', rest_dispatch,
{'GET': 'analytics.views.get_chart_data_for_installation'}),

View File

@ -61,7 +61,7 @@ urls = [
zerver.views.development.integrations.check_send_webhook_fixture_message),
path('devtools/integrations/send_all_webhook_fixture_messages',
zerver.views.development.integrations.send_all_webhook_fixture_messages),
path('devtools/integrations/<str:integration_name>/fixtures',
path('devtools/integrations/<integration_name>/fixtures',
zerver.views.development.integrations.get_fixtures),
]

View File

@ -276,7 +276,7 @@ v1_api_and_json_patterns = [
# It's important that this sit after users/me/presence so that
# Django's URL resolution order doesn't break the
# /users/me/presence endpoint.
path(r'users/<str:email>/presence', rest_dispatch,
path(r'users/<email>/presence', rest_dispatch,
{'GET': 'zerver.views.presence.get_presence_backend'}),
path('realm/presence', rest_dispatch,
{'GET': 'zerver.views.presence.get_statuses_for_realm'}),
@ -545,7 +545,7 @@ i18n_urls = [
name='zerver.views.realm.realm_reactivation'),
# Global public streams (Zulip's way of doing archives)
path('archive/streams/<int:stream_id>/topics/<str:topic_name>',
path('archive/streams/<int:stream_id>/topics/<topic_name>',
zerver.views.archive.archive,
name='zerver.views.archive.archive'),
path('archive/streams/<int:stream_id>/topics',
@ -570,7 +570,7 @@ i18n_urls = [
path('calls/bigbluebutton/join', zerver.views.video_calls.join_bigbluebutton),
# API and integrations documentation
path('integrations/doc-html/<str:integration_name>',
path('integrations/doc-html/<integration_name>',
zerver.views.documentation.integration_doc,
name="zerver.views.documentation.integration_doc"),
re_path(r'^integrations/(.*)$', IntegrationView.as_view()),