Skip to content

Commit 181c6aa

Browse files
chore(deps): update pre-commit hook adamchainz/django-upgrade to v1.24.0 (#14378)
* chore(deps): update pre-commit hook adamchainz/django-upgrade to v1.24.0 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e713b8e commit 181c6aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
args: [--no-sort-keys, --autofix, --no-ensure-ascii]
1919
exclude: ^weblate/trans/fixtures/simple-project.json|weblate/trans/tests/data/.*.json$
2020
- repo: https://github.com/adamchainz/django-upgrade
21-
rev: 1.23.1
21+
rev: 1.24.0
2222
hooks:
2323
- id: django-upgrade
2424
args: [--target-version, '5.1']

Diff for: weblate/configuration/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SettingCategory(models.IntegerChoices):
2020

2121

2222
class Setting(models.Model):
23-
category = models.IntegerField(choices=SettingCategory.choices)
23+
category = models.IntegerField(choices=SettingCategory)
2424
name = models.CharField(max_length=100)
2525
value = models.JSONField()
2626

0 commit comments

Comments
 (0)