urls: Migrate legacy urls to use modern django pattern.

This commit is contained in:
wowol 2020-05-05 13:42:02 +02:00 committed by Tim Abbott
parent 049288eaeb
commit 0e835c6381
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from django.conf.urls import url from django.urls import path
import zerver.views import zerver.views
import zerver.views.streams import zerver.views.streams
import zerver.views.auth import zerver.views.auth
@ -15,5 +15,5 @@ legacy_urls = [
# for devs, and I don't think we need to go to the server # for devs, and I don't think we need to go to the server
# any more to find out about subscriptions, since they are already # any more to find out about subscriptions, since they are already
# pushed to us via the event system. # pushed to us via the event system.
url(r'^json/subscriptions/exists$', zerver.views.streams.json_stream_exists), path('json/subscriptions/exists', zerver.views.streams.json_stream_exists),
] ]