Skip to content

Commit 0139204

Browse files
authored
Merge pull request watchdogpolska#2367 from watchdogpolska/develop
v1.5.56 - upgrade django to 5.2
2 parents 305fa77 + fe685ff commit 0139204

File tree

21 files changed

+110
-120
lines changed

21 files changed

+110
-120
lines changed

.contrib/docker/Dockerfile.gulp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM node:24
22
WORKDIR /app
33
VOLUME /app
4-
CMD ["bash","-c", "npm install && npx update-browserslist-db@latest && npx gulp build"]
4+
CMD ["bash","-c", "npm install && npx gulp build"]
55
# CMD ["bash","-c", " npm install ; npx gulp build ; sleep infinity "]

.contrib/docker/Dockerfile.web

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN pip install --upgrade pip
2323
RUN pip --version
2424
COPY requirements/*.txt ./requirements/
2525
# left for github actions reference:
26-
ARG DJANGO_VERSION='==3.2.23'
26+
ARG DJANGO_VERSION='==5.2'
2727
RUN pip install --no-cache-dir -r requirements/dev.txt
2828
# CMD ["bash", "-c", "python manage.py collectstatic --no-input && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"]
2929
# to allow VScode run and debug django app:

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
regenerate_frontend:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717
- name: Collect statics
1818
run: docker compose run web python manage.py collectstatic --noinput
1919
- name: Build and run frontend

.github/workflows/web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# # - "==2.2.*"
2020
# - "==4.2"
2121
steps:
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323
with:
2424
lfs: true
2525
- name: Build application

.github/workflows/web_image_buil_and_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.pull_request.merged == true && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616

1717
- name: Get version from script
1818
id: get_version

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ repos:
2020
rev: 1.29.1
2121
hooks:
2222
- id: django-upgrade
23-
args: [--target-version, "4.2"]
23+
args: [--target-version, "5.2"]
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.21.1
25+
rev: v3.21.2
2626
hooks:
2727
- id: pyupgrade
2828
args:
@@ -39,7 +39,7 @@ repos:
3939
- --skip-glob
4040
- "**/migrations/*.py"
4141
- repo: https://github.com/sirosen/check-jsonschema
42-
rev: 0.34.1
42+
rev: 0.36.0
4343
hooks:
4444
- id: check-github-workflows
4545
- id: check-readthedocs
@@ -50,7 +50,7 @@ repos:
5050
args: [-c, .yamllint.yml]
5151
# exclude: (feder/letters/logs/cassettes/.*|docker-compose.yml)
5252
- repo: https://github.com/psf/black-pre-commit-mirror
53-
rev: 25.11.0
53+
rev: 25.12.0
5454
hooks:
5555
- id: black
5656
args:

feder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# PEP 396: The __version__ attribute's value SHOULD be a string.
2-
__version__ = "1.5.54"
2+
__version__ = "1.5.56"
33

44

55
# Compatibility to eg. django-rest-framework
987 Bytes
Binary file not shown.

feder/letters/migrations/0043_letter_only_one_or_none_author.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ class Migration(migrations.Migration):
1212
operations = [
1313
migrations.AddConstraint(
1414
model_name='letter',
15-
constraint=models.CheckConstraint(check=models.Q(models.Q(('author_institution__isnull', True), ('author_user__isnull', False)), models.Q(('author_institution__isnull', False), ('author_user__isnull', True)), models.Q(('author_institution__isnull', True), ('author_user__isnull', True)), _connector='OR'), name='only_one_or_none_author'),
15+
constraint=models.CheckConstraint(condition=models.Q(models.Q(('author_institution__isnull', True), ('author_user__isnull', False)), models.Q(('author_institution__isnull', False), ('author_user__isnull', True)), models.Q(('author_institution__isnull', True), ('author_user__isnull', True)), _connector='OR'), name='only_one_or_none_author'),
1616
),
1717
]

feder/letters/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Meta:
222222
)
223223
constraints = [
224224
models.CheckConstraint(
225-
check=(
225+
condition=(
226226
models.Q(author_user__isnull=False, author_institution__isnull=True)
227227
| models.Q(
228228
author_user__isnull=True, author_institution__isnull=False

0 commit comments

Comments
 (0)