2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Bump to Dj 4.x (#6173)

* bump to dj >4.2

* switch to experimental git release

* bump django-import_export

* bump mptt

* replace is_ajax, which was removed
https://docs.djangoproject.com/en/3.1/releases/3.1/#id2

* Save before accessing values in m2m/fk fields

* move plugin init

* use dev version of django for fix

* update deps

* fix deps

* use django smaller 4.2

* fix reqs

* fix merge

* remove moved code

* another merge fix

* fix ajax call

* fix refs

* change python min v

* fix deps

* bump deps

* fix deps

* pin pillow

* dj 4.1 upgrades

* make diff smaller

* bump all deps

* drop down to py3.9

* bump versions

* merge fix

* fix diff

* more bumping

* diff cleanup

* bump deps

* fix reqs

* use accurate state for model migrations
using apps the historically correct state is used

* try import

* added more logs

* add try here too

* clean up rebuilds

* Dj 4.2 (#161)

* autochanges

* bump

* fix diff

* fix diff

* bump deps

* fix req

* remove select_related to test error influence

* switch to mptt fork

* fix reqs for upstream

* move tracking ensureance into save

* optimize check frequency

* use psycopg instead of psycopg2

* fix header

* just use the values

* switch to dj < 4.2

* fix req

* another req fix

* switch to 4.2 again

* fix merge error

* Check for null pk in calculate_total_price

Cannot access self.lines if pk is Null

* use patched mptt

* try psycopg2 again

* Remove tree rebuild from migrations

* Prevent notify_users if importing or migrating

* Add order_by() to subquery annotations

- Ref: https://stackoverflow.com/a/629691

* Update stock filters

- Append order_by()

* fix error if running without timezones in testing

* add logging to figure this out

* remove tz from self.creation if TZ is off

* add tz?

* move around?

* only run the test i am trying to figure out
not reproducible on my machine

* only run the test i am trying to figure out
not reproducible on my machine

* run all tests again

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
Matthias Mair
2024-02-06 02:30:50 +00:00
committed by GitHub
parent 676bb02f6e
commit d36cf358f8
29 changed files with 151 additions and 178 deletions

View File

@ -10,7 +10,7 @@ asgiref==3.7.2
# django
build==1.0.3
# via pip-tools
certifi==2023.7.22
certifi==2023.11.17
# via
# -c requirements.txt
# requests
@ -33,13 +33,13 @@ coverage[toml]==5.5
# coveralls
coveralls==2.1.2
# via -r requirements-dev.in
cryptography==41.0.6
cryptography==41.0.7
# via
# -c requirements.txt
# pdfminer-six
distlib==0.3.7
distlib==0.3.8
# via virtualenv
django==3.2.23
django==4.2.9
# via
# -c requirements.txt
# django-slowtests
@ -53,7 +53,7 @@ filelock==3.13.1
# via virtualenv
identify==2.5.31
# via pre-commit
idna==3.4
idna==3.6
# via
# -c requirements.txt
# requests
@ -61,7 +61,7 @@ importlib-metadata==6.8.0
# via
# -c requirements.txt
# build
isort==5.12.0
isort==5.13.2
# via -r requirements-dev.in
nodeenv==1.8.0
# via pre-commit
@ -69,13 +69,13 @@ packaging==23.2
# via
# -c requirements.txt
# build
pdfminer-six==20221105
pdfminer-six==20231228
# via -r requirements-dev.in
pip-tools==7.3.0
# via -r requirements-dev.in
platformdirs==3.11.0
platformdirs==4.1.0
# via virtualenv
pre-commit==3.5.0
pre-commit==3.6.0
# via -r requirements-dev.in
pycparser==2.21
# via
@ -83,10 +83,6 @@ pycparser==2.21
# cffi
pyproject-hooks==1.0.0
# via build
pytz==2023.3.post1
# via
# -c requirements.txt
# django
pyyaml==6.0.1
# via
# -c requirements.txt
@ -106,20 +102,20 @@ tomli==2.0.1
# build
# pip-tools
# pyproject-hooks
typing-extensions==4.8.0
typing-extensions==4.9.0
# via
# -c requirements.txt
# asgiref
# django-test-migrations
urllib3==2.0.7
urllib3==2.1.0
# via
# -c requirements.txt
# requests
virtualenv==20.24.6
virtualenv==20.25.0
# via pre-commit
wheel==0.41.3
wheel==0.42.0
# via pip-tools
zipp==3.16.0
zipp==3.16.2
# via
# -c requirements.txt
# importlib-metadata