Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 4 changes #426

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Django 4 changes #426

merged 2 commits into from
Jun 4, 2024

Conversation

dracos
Copy link
Member

@dracos dracos commented Apr 25, 2024

Fixes #396

This reduces the queries used.
* Test 4.2 and 5.0 in tox/GitHub.
* Switch from OSMGeoAdmin to GISModelAdmin
* Remove USE_L10N.
* Stop prefetching countries – this isn't needed because any single
  lookup can look it up, and any list fetches it separately in
  output_areas for the iterator. Django 5 will stop iterator() working
  with a prefetch_related() without a chunk size, we don't need this.
@dracos dracos merged commit e220c0f into master Jun 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Django 4 support
2 participants