Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .builds/py311-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ tasks:
- tox-sqlite: |
cd django-afip
tox -e sqlite
- tox-django42-mariadb: |
cd django-afip
tox -e django42-mysql
- tox-django50-mariadb: |
cd django-afip
tox -e django50-mysql
- tox-django42-postgres: |
cd django-afip
tox -e django42-postgres
- tox-django50-postgres: |
cd django-afip
tox -e django50-postgres
Expand Down
6 changes: 0 additions & 6 deletions .builds/py312+live-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ tasks:
- tox-sqlite: |
cd django-afip
tox -e sqlite
- tox-django42-mariadb: |
cd django-afip
tox -e django42-mysql
- tox-django50-mariadb: |
cd django-afip
tox -e django50-mysql
- tox-django42-postgres: |
cd django-afip
tox -e django42-postgres
- tox-django50-postgres: |
cd django-afip
tox -e django50-postgres
Expand Down
4 changes: 2 additions & 2 deletions django_afip/migrations/0011_receiptentry_discount_and_more.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="receiptentry",
constraint=models.CheckConstraint(
check=models.Q(("discount__gte", Decimal("0.0"))),
condition=models.Q(("discount__gte", Decimal("0.0"))),
name="discount_positive_value",
),
),
migrations.AddConstraint(
model_name="receiptentry",
constraint=models.CheckConstraint(
check=models.Q(
condition=models.Q(
(
"discount__lte",
django.db.models.expressions.CombinedExpression(
Expand Down
5 changes: 3 additions & 2 deletions django_afip/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,10 +1693,11 @@ class Meta:
verbose_name_plural = _("receipt entries")
constraints = (
CheckConstraint(
check=Q(discount__gte=Decimal("0.0")), name="discount_positive_value"
condition=Q(discount__gte=Decimal("0.0")),
name="discount_positive_value",
),
CheckConstraint(
check=Q(discount__lte=F("quantity") * F("unit_price")),
condition=Q(discount__lte=F("quantity") * F("unit_price")),
name="discount_less_than_total",
),
)
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Any breaking changes which require intervention will be mentioned here.
- Extend supported versions of ``django-renderpdf``, ``qrcode`` and
``cryptography``.
- Drop support for Python 3.9.
* Dropped support for Django 4.2.

13.2.2
------
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
Expand All @@ -30,7 +29,7 @@ classifiers = [
]
dependencies = [
"cryptography>=3.2,<47",
"django>=4.2,<5.3",
"django>=5.0,<5.3",
"django_renderpdf>=6.0.0,<7.0.0",
"lxml>=3.4.4",
"pyopenssl>=16.2.0",
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extras =
postgres: postgres
mysql: mysql
deps =
django42: Django>=4.0,<4.2
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
django52: Django>=5.2,<5.3
Expand Down