mirror of https://github.com/zulip/zulip.git
Rename class_exists to stream_exists.
(imported from commit 416bd1f4c513216d45913e306f6c8eaa542f3539)
This commit is contained in:
parent
39cde772eb
commit
4006e4b1ea
|
@ -31,7 +31,7 @@ urlpatterns = patterns('',
|
|||
url(r'^json/subscriptions/add$', 'zephyr.views.json_add_subscription', name='add_subscription'),
|
||||
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': os.path.join(settings.SITE_ROOT, '..', 'zephyr', 'static/')}),
|
||||
url(r'^subscriptions/exists/(?P<stream>.*)$', 'zephyr.views.class_exists', name='class_exists'),
|
||||
url(r'^subscriptions/exists/(?P<stream>.*)$', 'zephyr.views.stream_exists', name='stream_exists'),
|
||||
|
||||
# Uncomment the admin/doc line below to enable admin documentation:
|
||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
|
|
|
@ -560,7 +560,7 @@ def change_settings(request):
|
|||
return json_success(result)
|
||||
|
||||
@login_required
|
||||
def class_exists(request, stream):
|
||||
def stream_exists(request, stream):
|
||||
if not valid_stream_name(stream):
|
||||
return json_error("Invalid characters in class name")
|
||||
return HttpResponse(
|
||||
|
|
Loading…
Reference in New Issue