Skip to content

Commit bd74d99

Browse files
committed
2 parents c85b77d + 7416e22 commit bd74d99

38 files changed

+953
-564
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.1.0
2+
current_version = 2.2.0
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<releaselevel>[a-z]+)?

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
*.pyc
33
*$py.class
4+
*.mo
45
*~
56
.*.sw[pon]
67
dist/

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
dist: xenial
2+
dist: bionic
33
cache: false
44
before_install:
55
- sudo apt update
@@ -19,6 +19,7 @@ env:
1919
- DJANGO=2.2
2020
- DJANGO=3.0
2121
- DJANGO=3.1
22+
- DJANGO=3.2
2223
os:
2324
- linux
2425
matrix:

Changelog

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@
44
Change history
55
================
66

7+
2.2.0
8+
=====
9+
:release-date: 2021-01-19 2:30 p.m. UTC+6:00
10+
:release-by: Asif Saif Uddin
11+
12+
- Fixed compatibility with django-timezone-field>=4.1.0
13+
- Fixed deprecation warnings: 'assertEquals' in tests.
14+
- Fixed SolarSchedule event choices i18n support.
15+
- Updated 'es' .po file metadata
16+
- Update 'fr' .po file metadata
17+
- New schema migrations for SolarSchedule events choices changes in models.
18+
719
2.1.0
820
=====
921
:release-date:
10-
:release-by:
22+
:release-by: Asif Saif Uddin
1123
- Fix string representation of CrontabSchedule, so it matches UNIX CRON expression format (#318)
1224
- If no schedule is selected in PeriodicTask form, raise a non-field error instead of an error bounded to the `interval` field (#327)
1325
- Fix some Spanish translations (#339)
@@ -19,11 +31,12 @@
1931

2032
2.0.0
2133
=====
22-
:release-date:
23-
:release-by:
34+
:release-date:
35+
:release-by:
2436
- Added support for Django 3.0
2537
- Dropped support for Django < 2.2 and Python < 3.5
2638

39+
2740
1.6.0
2841
=====
2942
:release-date: 2020-02-01 4:30 p.m. UTC+6:00

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ recursive-include docs *
99
recursive-include extra/*
1010
recursive-include examples *
1111
recursive-include requirements *.txt *.rst
12-
recursive-include django_celery_beat *.py *.html
12+
recursive-include django_celery_beat *.py *.html *.po *.mo
1313
recursive-include t *.py
1414

1515
recursive-exclude * __pycache__

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
|build-status| |coverage| |license| |wheel| |pyversion| |pyimp|
66

7-
:Version: 2.1.0
7+
:Version: 2.2.0
88
:Web: http://django-celery-beat.readthedocs.io/
99
:Download: http://pypi.python.org/pypi/django-celery-beat
1010
:Source: http://github.com/celery/django-celery-beat

django_celery_beat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from collections import namedtuple
99

10-
__version__ = '2.1.0'
10+
__version__ = '2.2.0'
1111
__author__ = 'Asif Saif Uddin, Ask Solem'
1212
1313
__homepage__ = 'https://github.com/celery/django-celery-beat'

django_celery_beat/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Meta:
7878
exclude = ()
7979

8080
def clean(self):
81-
data = super(PeriodicTaskForm, self).clean()
81+
data = super().clean()
8282
regtask = data.get('regtask')
8383
if regtask:
8484
data['task'] = regtask
@@ -154,7 +154,7 @@ def changelist_view(self, request, extra_context=None):
154154
request, extra_context)
155155

156156
def get_queryset(self, request):
157-
qs = super(PeriodicTaskAdmin, self).get_queryset(request)
157+
qs = super().get_queryset(request)
158158
return qs.select_related('interval', 'crontab', 'solar', 'clocked')
159159

160160
def _message_user_about_update(self, request, rows_updated, verb):

django_celery_beat/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ class BeatConfig(AppConfig):
1111
name = 'django_celery_beat'
1212
label = 'django_celery_beat'
1313
verbose_name = _('Periodic Tasks')
14+
default_auto_field = 'django.db.models.AutoField'

django_celery_beat/clockedschedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class clocked(schedules.BaseSchedule):
1414
def __init__(self, clocked_time, nowfun=None, app=None):
1515
"""Initialize clocked."""
1616
self.clocked_time = maybe_make_aware(clocked_time)
17-
super(clocked, self).__init__(nowfun=nowfun, app=app)
17+
super().__init__(nowfun=nowfun, app=app)
1818

1919
def remaining_estimate(self, last_run_at):
2020
return self.clocked_time - self.now()

0 commit comments

Comments
 (0)