forked from celery/django-celery-beat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default timezone of CrontabSchedule from 'CELERY_TIMEZONE' setting. (c…
…elery#346) * Default timezone of CrontabSchedule model from 'CELERY_TIMEZONE' setting. * Add test for CrontabSchedule default timezone. * Lint test for CrontabSchedule default timezone. * Lint models, skip linting for new migration and fix 'CrontabSchedule.timezone.help_text' double space. * Minor change in migration * Lint models with 'pydocstyle'. * Get CELERY_TIMEZONE setting from current app namespace. * Regenerate new migration file
- Loading branch information
Showing
6 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.0.6 on 2020-06-09 07:27 | ||
# flake8: noqa | ||
from django.db import migrations | ||
import django_celery_beat.models | ||
import timezone_field.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('django_celery_beat', '0012_periodictask_expire_seconds'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='crontabschedule', | ||
name='timezone', | ||
field=timezone_field.fields.TimeZoneField(default=django_celery_beat.models.crontab_schedule_celery_timezone, help_text='Timezone to Run the Cron Schedule on. Default is UTC.', verbose_name='Cron Timezone'), | ||
), | ||
] |
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
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
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
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
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