Skip to content

Commit 4418121

Browse files
authored
v0.8.2.1 (#290)
* - **Added logging for development environment debugging:** - **Optimized `UNIT_MODEL_CHOICES` initialization in `data_import.py`:** - Simplified choice list creation by concatenating the default choice with enumerated unit models. - Removed unnecessary conditional logic for the first choice in the previous implementation. * - **Version bump to v0.8.2.1:** - **Bug fix in `chart_of_accounts.py`:** - Corrected queryset filter logic by replacing `role__in=[ROOT_GROUP]` with `role__in=ROOT_GROUP` to prevent potential list-related errors. ### **Summary** Bumped version to v0.8.2.1 and fixed a queryset filtering bug in `chart_of_accounts.py` for accurate role checking. ### **Backwards Compatibility** No breaking changes; backwards-compatible bug fix and version update.
1 parent e3865dd commit 4418121

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

django_ledger/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
default_app_config = 'django_ledger.apps.DjangoLedgerConfig'
77

88
"""Django Ledger"""
9-
__version__ = '0.8.2'
9+
__version__ = '0.8.2.1'
1010
__license__ = 'GPLv3 License'
1111

1212
__author__ = 'Miguel Sanda'

django_ledger/models/chart_of_accounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def is_configured(self) -> bool:
265265
return getattr(self, 'configured')
266266
except AttributeError:
267267
pass
268-
account_qs = self.accountmodel_set.filter(role__in=[ROOT_GROUP])
268+
account_qs = self.accountmodel_set.filter(role__in=ROOT_GROUP)
269269
self.configured = len(account_qs) == len(ROOT_GROUP)
270270
return self.configured
271271

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "django-ledger"
3-
version = "0.8.2"
3+
version = "0.8.2.1"
44
readme = "README.md"
55
requires-python = ">=3.11"
66
description = "Double entry accounting system built on the Django Web Framework."

0 commit comments

Comments
 (0)