Skip to content

Commit 5ccad37

Browse files
author
Alexander Sommer
committed
Update dependencies
1 parent cc4598e commit 5ccad37

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

pyproject.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ version = '0.4.0'
44
description = 'Simple shift management system'
55
readme = 'README.md'
66
requires-python = '>=3.9'
7-
authors = [
8-
{ name = 'HaDiKo e.V. HaDiNet', email = '[email protected]' },
9-
]
7+
authors = [{ name = 'HaDiKo e. V. - HaDiNet', email = '[email protected]' }]
108
classifiers = [
119
'Programming Language :: Python',
1210
'Programming Language :: Python :: 3',
@@ -17,20 +15,20 @@ classifiers = [
1715
]
1816

1917
dependencies = [
20-
'Authlib==1.3.0',
21-
'Django==4.2.9',
22-
'django-auth-ldap==4.6.0',
23-
'django-bootstrap5==23.4',
24-
'django-colorfield==0.11.0',
18+
'Authlib==1.4.1',
19+
'Django==5.1.6',
20+
'django-auth-ldap==5.1.0',
21+
'django-bootstrap5==24.3',
22+
'django-colorfield==0.12.0',
2523
'django-ical==1.9.2',
26-
'django-phonenumber-field[phonenumberslite]==7.3.0',
27-
'gunicorn==21.2.0',
24+
'django-phonenumber-field[phonenumberslite]==8.0.0',
25+
'gunicorn==23.0.0',
2826
'holidays==0.40',
29-
'icalendar==5.0.11',
30-
'Pillow==10.4.0',
27+
'icalendar==6.1.1',
28+
'Pillow==11.1.0',
3129
'psycopg2-binary==2.9.10',
32-
'python-dateutil==2.8.2',
33-
'requests==2.31.0',
30+
'python-dateutil==2.9.0.post0',
31+
'requests==2.32.3',
3432
]
3533

3634
[project.optional-dependencies]
@@ -40,6 +38,7 @@ tests = [
4038
'types-requests==2.31.0.10',
4139
'mypy==1.8.0',
4240
]
41+
4342
docs = [
4443
'mkdocs==1.4.2',
4544
'mkdocs-material==9.0.11',

src/shiftings/events/models/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Meta:
4444
ordering = ['name', 'start_date', 'end_date', 'organization']
4545
constraints = [
4646
models.CheckConstraint(name='event_start_after_end',
47-
check=models.Q(start_date__lte=models.F('end_date')))
47+
condition=models.Q(start_date__lte=models.F('end_date')))
4848
]
4949

5050
def __str__(self) -> str:

src/shiftings/organizations/models/membership.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class Meta:
4242
UniqueConstraint(fields=['organization', 'name'], name='name_unique_per_organization'),
4343
UniqueConstraint(fields=['organization', 'admin'], name='admin_unique_per_organization'),
4444
UniqueConstraint(fields=['organization', 'default'], name='default_unique_per_organization'),
45-
CheckConstraint(check=~Q(admin=False), name='admin_true_or_null'),
46-
CheckConstraint(check=~Q(default=False), name='default_true_or_null'),
47-
CheckConstraint(check=(Q(admin=True, default__isnull=True) | Q(admin__isnull=True)),
45+
CheckConstraint(condition=~Q(admin=False), name='admin_true_or_null'),
46+
CheckConstraint(condition=~Q(default=False), name='default_true_or_null'),
47+
CheckConstraint(condition=(Q(admin=True, default__isnull=True) | Q(admin__isnull=True)),
4848
name='admin_not_default')
4949
]
5050

@@ -76,7 +76,7 @@ class Meta:
7676
UniqueConstraint(fields=['organization', 'type', 'user'], name='unique_membership_organization_type_user'),
7777
UniqueConstraint(fields=['organization', 'type', 'group'],
7878
name='unique_membership_organization_type_group'),
79-
CheckConstraint(check=(~(Q(user__isnull=True) & Q(group__isnull=True))), name='group_or_user')
79+
CheckConstraint(condition=(~(Q(user__isnull=True) & Q(group__isnull=True))), name='group_or_user')
8080
]
8181

8282
def __str__(self) -> str:

src/shiftings/shifts/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ class Meta:
2727
abstract = True
2828
default_permissions = ()
2929
constraints = [
30-
models.CheckConstraint(check=Q(max_users=0) | Q(max_users__gte=F('required_users')),
30+
models.CheckConstraint(condition=Q(max_users=0) | Q(max_users__gte=F('required_users')),
3131
name='shift_max_users_gte_required_users')
3232
]

src/shiftings/shifts/models/shift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Meta:
4646
default_permissions = ()
4747
ordering = ['start', 'end', 'name', 'organization']
4848
constraints = [
49-
models.CheckConstraint(check=Q(start__lte=F('end')), name='shift_start_before_end')
49+
models.CheckConstraint(condition=Q(start__lte=F('end')), name='shift_start_before_end')
5050
]
5151

5252
def clean(self) -> None:

0 commit comments

Comments
 (0)