From 68e01b5a390d4236398ed349b2734b06a22b048c Mon Sep 17 00:00:00 2001 From: Krzysztof Klimonda Date: Sat, 2 Mar 2013 12:01:07 -0800 Subject: [PATCH] Rename upload-pin to create-image It didn't make sense to call it upload-pin as it is being used only for creating the Image object. --- pinry/pins/urls.py | 2 +- pinry/static/js/pin-form.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pinry/pins/urls.py b/pinry/pins/urls.py index a74fc64..6e94fa7 100644 --- a/pinry/pins/urls.py +++ b/pinry/pins/urls.py @@ -7,7 +7,7 @@ from .views import CreateImage urlpatterns = patterns('pinry.pins.views', url(r'^pin-form/$', TemplateView.as_view(template_name='core/pin_form.html'), name='pin-form'), - url(r'^upload-pin/$', CreateImage.as_view(), name='upload-pin'), + url(r'^create-image/$', CreateImage.as_view(), name='create-image'), url(r'^tag/(?P(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), name='tag-pins'), url(r'^$', TemplateView.as_view(template_name='core/pins.html'), diff --git a/pinry/static/js/pin-form.js b/pinry/static/js/pin-form.js index b8ad964..432a794 100644 --- a/pinry/static/js/pin-form.js +++ b/pinry/static/js/pin-form.js @@ -65,7 +65,7 @@ $(window).load(function() { // Drag and Drop Upload $('#pin-form-image-upload').fineUploader({ request: { - endpoint: '/pins/upload-pin/', + endpoint: '/pins/create-image/', paramsInBody: true, multiple: false, validation: {