Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
6b1bbfe3
Commit
6b1bbfe3
authored
Jul 13, 2016
by
Liam Brenner
Browse files
Made pagination after chooser upload test pass, removed print statement
parent
260f0b41
Changes
1
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/views/chooser.py
View file @
6b1bbfe3
...
...
@@ -95,7 +95,6 @@ def video_chosen(request, video_id):
def
chooser_upload
(
request
):
print
(
"chooser_upload hit!!!"
)
VideoForm
=
get_video_form
(
Video
)
searchform
=
SearchForm
()
...
...
@@ -110,7 +109,7 @@ def chooser_upload(request):
# Reindex the video to make sure all tags are indexed
for
backend
in
get_search_backends
():
backend
.
add
(
video
)
return
render_modal_workflow
(
request
,
None
,
'wagtailvideos/chooser/video_chosen.js'
,
{
'video_json'
:
get_video_json
(
video
)}
...
...
@@ -119,6 +118,7 @@ def chooser_upload(request):
form
=
VideoForm
()
videos
=
Video
.
objects
.
order_by
(
'title'
)
paginator
,
videos
=
paginate
(
request
,
videos
,
per_page
=
12
)
return
render_modal_workflow
(
request
,
'wagtailvideos/chooser/chooser.html'
,
'wagtailvideos/chooser/chooser.js'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment