Skip to content

[Task]: Use new features in django5.2 #16012

@eviljeff

Description

@eviljeff

Description

Spun off #15585 - django 5.2 (and previous releases) added new features we might want to use to make our code more maintainable (less special sauce). Not all of the features will actually be useful (I just read the release notes; didn't fully investigate); and some may be too much work to implement in existing code, compared to the improvements.

Acceptance Criteria

New features we might want to make use of:

Deprecations in 5.x that don't block 4.2->5.2, but could block a future 5.2->6.2 upgrade:

  • The check keyword argument of CheckConstraint is deprecated in favor of condition.
  • Passing positional arguments name and violation_error_message to BaseConstraint is deprecated in favor of keyword-only arguments.

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions