Skip to content

Commit

Permalink
Add default_auto_field to app config
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-b committed Jan 8, 2024
1 parent f4da220 commit edd8656
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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",
Expand Down
16 changes: 9 additions & 7 deletions wagtailvideos/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@

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)

0 comments on commit edd8656

Please sign in to comment.