瀏覽代碼

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 年之前
父節點
當前提交
68e01b5a39
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      pinry/pins/urls.py
  2. +1
    -1
      pinry/static/js/pin-form.js

+ 1
- 1
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<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 查看文件

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


Loading…
取消
儲存