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
75f46292
Commit
75f46292
authored
Jun 05, 2018
by
J. David Ibáñez
Browse files
Fix calls to reverse
parent
c124e7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/wagtail_hooks.py
View file @
75f46292
from
django.conf.urls
import
include
,
url
from
django.contrib.staticfiles.templatetags.staticfiles
import
static
from
django
import
urls
from
django
.urls
import
reverse
from
django.utils.html
import
format_html
,
format_html_join
from
django.utils.translation
import
ugettext_lazy
as
_
from
wagtail.admin.menu
import
MenuItem
...
...
@@ -32,7 +32,7 @@ def editor_js():
window.chooserUrls.videoChooser = '{0}';
</script>
"""
,
urls
.
reverse
(
'wagtailvideos:chooser'
)
reverse
(
'wagtailvideos:chooser'
)
)
...
...
@@ -44,6 +44,6 @@ def register_video_permissions_panel():
@
hooks
.
register
(
'register_admin_menu_item'
)
def
register_images_menu_item
():
return
MenuItem
(
_
(
'Videos'
),
urls
.
reverse
(
'wagtailvideos:index'
),
_
(
'Videos'
),
reverse
(
'wagtailvideos:index'
),
name
=
'videos'
,
classnames
=
'icon icon-media'
,
order
=
300
)
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