Selaa lähdekoodia

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.
tags/v1.0.0
Krzysztof Klimonda 11 vuotta sitten
vanhempi
commit
68e01b5a39
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +1
    -1
      pinry/pins/urls.py
  2. +1
    -1
      pinry/static/js/pin-form.js

+ 1
- 1
pinry/pins/urls.py Näytä tiedosto

@@ -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<tag>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'),
name='tag-pins'),
url(r'^$', TemplateView.as_view(template_name='core/pins.html'),


+ 1
- 1
pinry/static/js/pin-form.js Näytä tiedosto

@@ -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: {


Ladataan…
Peruuta
Tallenna