Skip to content

Update Django 5.2.11#1425

Merged
Fingel merged 2 commits intodevfrom
django-5
Feb 26, 2026
Merged

Update Django 5.2.11#1425
Fingel merged 2 commits intodevfrom
django-5

Conversation

@Fingel
Copy link
Copy Markdown
Contributor

@Fingel Fingel commented Feb 25, 2026

The edit to session_utils is because Django 5 no longer supports using unsaved objects in query expressions.

The edits to tom_targets/tetss/tests.py are simply a renamed function.

Notable features of Django 5 relevant to the TOM Toolkit:

  • Database computed defaults allows generating defaults values from the database, not python. This might come in handy in specific database-heavy areas, like PostGIS or Healpix.
  • The new ClosestPoint() function sounds like it could be helpful in RA/DEC searches, perhaps for non-exact/fuzzy search where only a single result is desired.
  • Some improvements to pagination errors which might make the HTMX table stuff smoother.

The edit to session_utils is because Django 5 no longer supports using
unsaved objects in query expressions.

The edits to tom_targets/tetss/tests.py are simply a renamed function.

Notable features of Django 5 relevant to the TOM Toolkit:

* [Database computed
  defaults](https://docs.djangoproject.com/en/6.0/releases/5.0/#database-computed-default-values)
  allows generating defaults values from the database, not python. This
  might come in handy in specific database-heavy areas, like PostGIS or
  Healpix.
* The new
  [ClosestPoint()](https://docs.djangoproject.com/en/6.0/releases/5.0/#django-contrib-gis)
  function sounds like it could be helpful in RA/DEC searches, perhaps
  for non-exact/fuzzy search where only a single result is desired.
* Some improvements to [pagination
  errors](https://docs.djangoproject.com/en/6.0/releases/5.0/#pagination)
  which might make the HTMX table stuff smoother.
@Fingel Fingel requested review from jchate6 and phycodurus February 25, 2026 03:23
@Fingel Fingel linked an issue Feb 25, 2026 that may be closed by this pull request
@jchate6 jchate6 moved this to Needs Review in TOM Toolkit Feb 25, 2026
Copy link
Copy Markdown
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@Fingel Fingel merged commit f0d52e1 into dev Feb 26, 2026
24 of 26 checks passed
@github-project-automation github-project-automation bot moved this from Needs Review to Merged (to dev) in TOM Toolkit Feb 26, 2026
@Fingel Fingel self-assigned this Feb 26, 2026
@jchate6 jchate6 deleted the django-5 branch March 27, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Investigate supporting Django 5 and 6

3 participants