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
edd86561
Commit
edd86561
authored
Jan 09, 2024
by
Seb
Browse files
Add default_auto_field to app config
parent
f4da2207
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
edd86561
...
...
@@ -10,7 +10,7 @@ from setuptools import find_packages, setup # noqa: E4
setup
(
name
=
"wagtailvideos"
,
version
=
"5.2.
0
"
,
version
=
"5.2.
1
"
,
description
=
"A wagtail module for uploading and displaying videos in various codecs."
,
long_description
=
readme
,
author
=
"Neon Jungle"
,
...
...
wagtailvideos/apps.py
View file @
edd86561
...
...
@@ -7,25 +7,27 @@ from wagtailvideos import ffmpeg
def
ffmpeg_check
(
app_configs
,
**
kwargs
):
messages
=
[]
if
(
not
ffmpeg
.
installed
()
and
not
getattr
(
settings
,
'
WAGTAIL_VIDEOS_DISABLE_TRANSCODE
'
,
False
)
if
not
ffmpeg
.
installed
()
and
not
getattr
(
settings
,
"
WAGTAIL_VIDEOS_DISABLE_TRANSCODE
"
,
False
):
messages
.
append
(
Warning
(
'
ffmpeg could not be found on your system. Transcoding will be disabled
'
,
"
ffmpeg could not be found on your system. Transcoding will be disabled
"
,
hint
=
None
,
id
=
'
wagtailvideos.W001
'
,
id
=
"
wagtailvideos.W001
"
,
)
)
return
messages
class
WagtailVideosApp
(
AppConfig
):
name
=
'wagtailvideos'
label
=
'wagtailvideos'
verbose_name
=
'Wagtail Videos'
name
=
"wagtailvideos"
label
=
"wagtailvideos"
verbose_name
=
"Wagtail Videos"
default_auto_field
=
"django.db.models.AutoField"
def
ready
(
self
):
from
wagtailvideos.signals
import
register_signal_handlers
register_signal_handlers
()
register
(
ffmpeg_check
)
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