Skip to content

Commit

Permalink
Django>=3.2,<4.2 (#567)
Browse files Browse the repository at this point in the history
* Django>=3.2,<4.2

* style: fix flake8 error

* docs: add clockedschedule doc

Co-authored-by: peter_wu <[email protected]>
  • Loading branch information
auvipy and trend-peter-wu authored Oct 6, 2022
1 parent dde7b29 commit 5a72e0a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django_celery_beat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups()
VERSION = version_info = version_info_t(
int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '')
del(_temp)
del(re)
del _temp
del re

__all__ = []

Expand Down
2 changes: 1 addition & 1 deletion django_celery_beat/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ 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.
"""
""" # noqa: E501
try:
CELERY_TIMEZONE = getattr(
settings, '%s_TIMEZONE' % current_app.namespace)
Expand Down
11 changes: 11 additions & 0 deletions docs/reference/django-celery-beat.clockedschedule.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
=====================================================
``django_celery_beat.clockedschedule``
=====================================================

.. contents::
:local:
.. currentmodule:: django_celery_beat.clockedschedule

.. automodule:: django_celery_beat.clockedschedule
:members:
:undoc-members:
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
django-celery-beat.admin
django-celery-beat.utils
django-celery-beat.validators
django-celery-beat.clockedschedule
2 changes: 1 addition & 1 deletion requirements/test-django.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Django>=3.2,<4.1
Django>=3.2,<4.2

0 comments on commit 5a72e0a

Please sign in to comment.