Skip to content

Commit 846825a

Browse files
committed
fix(deps): migrate to django builtin
1 parent 8b0ba2b commit 846825a

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by Django 4.2.21 on 2025-07-13 11:31
2+
3+
from django.db import migrations, models
4+
5+
import chores.models
6+
7+
8+
class Migration(migrations.Migration):
9+
dependencies = [
10+
("chores", "0005_chorenotification"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="chore",
16+
name="configuration",
17+
field=models.JSONField(validators=[chores.models.validate_json]),
18+
),
19+
migrations.AlterField(
20+
model_name="historicalchore",
21+
name="configuration",
22+
field=models.JSONField(validators=[chores.models.validate_json]),
23+
),
24+
]

chores/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22

3-
import jsonfield
43
from django.core import exceptions
54
from django.db import models
65
from simple_history.models import HistoricalRecords
@@ -20,7 +19,7 @@ class Chore(models.Model):
2019
name = models.CharField(max_length=40, unique=True)
2120
description = models.CharField(max_length=200)
2221
class_type = models.CharField(max_length=40)
23-
configuration = jsonfield.JSONField(validators=[validate_json])
22+
configuration = models.JSONField(validators=[validate_json])
2423
wiki_url = models.URLField(blank=True, null=True)
2524
creator = models.ForeignKey(
2625
User,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ dependencies = [
2424
"reportlab>=4.0.7,<5",
2525
"pypdf2>=3.0.1,<4",
2626
"lxml>=5.0.0,<6",
27-
"jsonfield2>=4.0.0.post0,<5",
2827
"django-money>=3.4.0,<4",
2928
"requests>=2.32.2,<3",
3029
"python-dateutil>=2.8.2,<3",
@@ -46,6 +45,7 @@ dependencies = [
4645
"humanize>=4.12.3",
4746
"time-machine>=2.16.0",
4847
"factory-boy>=3.3.3",
48+
"jsonfield2>=4.0.0.post0",
4949
]
5050

5151
[dependency-groups]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)