You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading django-timezone-field to v4.2, Django (v2.2.24) application is not able to initialize:
def crontab_schedule_celery_timezone():
"""Return timezone string from Django settings `CELERY_TIMEZONE` variable. If is not defined or is not a valid timezone, return `"UTC"` instead."""
try:
CELERY_TIMEZONE = getattr(
settings, '%s_TIMEZONE' % current_app.namespace)
except AttributeError:
return'UTC'return CELERY_TIMEZONE if CELERY_TIMEZONE in [
> choice[0].zone forchoicein timezone_field.
TimeZoneField.default_choices
] else'UTC'
E AttributeError: type object 'TimeZoneField' has no attribute 'default_choices'
../.local/lib/python3.8/site-packages/django_celery_beat/models.py:70: AttributeError
The text was updated successfully, but these errors were encountered:
After upgrading
django-timezone-field
to v4.2, Django (v2.2.24) application is not able to initialize:The text was updated successfully, but these errors were encountered: