-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'help' to existing management commands
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/wagtail_bynder/management/commands/update_stale_documents.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from django.utils.translation import gettext_lazy as _ | ||
from wagtail.documents import get_document_model | ||
|
||
from .base import BaseBynderSyncCommand | ||
|
||
|
||
class Command(BaseBynderSyncCommand): | ||
help = _( | ||
"Update stale Wagtail document library items to reflect recent asset changes in Bynder." | ||
) | ||
model = get_document_model() | ||
bynder_asset_type: str = "document" | ||
page_size: int = 200 |
15 changes: 12 additions & 3 deletions
15
src/wagtail_bynder/management/commands/update_stale_images.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/wagtail_bynder/management/commands/update_stale_videos.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
from wagtail_bynder import get_video_model | ||
|
||
from .base import BaseBynderSyncCommand | ||
|
||
|
||
class Command(BaseBynderSyncCommand): | ||
help = _( | ||
"Update stale Wagtail video library items to reflect recent asset updates in Bynder." | ||
) | ||
model = get_video_model() | ||
bynder_asset_type: str = "video" | ||
page_size: int = 200 |