publish back to coming soon state
This commit is contained in:
parent
b6cdddbe55
commit
825c83ce44
|
@ -89,6 +89,7 @@ def add_category(request):
|
||||||
c.save()
|
c.save()
|
||||||
return render_to_json_response({'category_id': c.id, 'category_name': c.name})
|
return render_to_json_response({'category_id': c.id, 'category_name': c.name})
|
||||||
|
|
||||||
|
|
||||||
class FolderSelect(forms.widgets.Select):
|
class FolderSelect(forms.widgets.Select):
|
||||||
def _get_choices(self):
|
def _get_choices(self):
|
||||||
return getFolderList()
|
return getFolderList()
|
||||||
|
@ -99,7 +100,6 @@ class FolderSelect(forms.widgets.Select):
|
||||||
|
|
||||||
choices = property(_get_choices, _set_choices)
|
choices = property(_get_choices, _set_choices)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class FolderField(forms.ChoiceField):
|
class FolderField(forms.ChoiceField):
|
||||||
widget = FolderSelect
|
widget = FolderSelect
|
||||||
|
|
|
@ -18,7 +18,7 @@ urlpatterns = patterns('',
|
||||||
(r'^sandbox/home$', 'main.views.home'),
|
(r'^sandbox/home$', 'main.views.home'),
|
||||||
(r'^sandbox/contact$', 'main.views.contact'),
|
(r'^sandbox/contact$', 'main.views.contact'),
|
||||||
(r'^sandbox/archive$', 'files.views.browse'),
|
(r'^sandbox/archive$', 'files.views.browse'),
|
||||||
(r'^sandbox/publish$', 'editor.views.create_article'),
|
(r'^sandbox/publish$', 'main.views.publish'),
|
||||||
(r'^sandbox/browse$', 'main.views.browse'),
|
(r'^sandbox/browse$', 'main.views.browse'),
|
||||||
(r'^sandbox/upload$', 'files.views.upload_files'),
|
(r'^sandbox/upload$', 'files.views.upload_files'),
|
||||||
(r'^sandbox/faq$', 'main.views.faq'),
|
(r'^sandbox/faq$', 'main.views.faq'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user