Explorar el Código

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 hace 11 años
padre
commit
68e01b5a39
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      pinry/pins/urls.py
  2. +1
    -1
      pinry/static/js/pin-form.js

+ 1
- 1
pinry/pins/urls.py Ver fichero

@@ -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 Ver fichero

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


Cargando…
Cancelar
Guardar