Skip to content

Commit 76d80b9

Browse files
committed
⬆️ make filingcabinet compatible with treebeard v5
1 parent 8ffb530 commit 76d80b9

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"django-json-widget",
1313
"jsonschema",
1414
"django-taggit>=2",
15-
"django-treebeard",
15+
"django-treebeard>=5",
1616
"djangorestframework",
1717
"reportlab",
1818
"celery",

src/filingcabinet/migrations/0026_auto_20220920_1828.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ class MP_AddHandler:
1313
def __init__(self):
1414
self.stmts = []
1515

16-
17-
NUM = NumConv(len(ALPHABET), ALPHABET)
16+
# inspired by https://github.com/django-cms/django-cms/commit/e0e55e59be84d4a3ee070aefcda7995cc1383afa
17+
try:
18+
NUM = NumConv(len(ALPHABET), ALPHABET)
19+
except TypeError:
20+
NUM = NumConv( ALPHABET)
1821

1922

2023
def _int2str(num):

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)