Skip to content

CheckConstraint.check is marked as deprecated in Django 5.1 #100

Closed
@decadecity

Description

I've upgraded the project I'm using to trial tasks to Django 5.1 and I am now receiving the following deprecation warning:

django_tasks/backends/database/models.py:103: RemovedInDjango60Warning: CheckConstraint.check is deprecated in favor of '.condition'.

Per the Django 5.1 release notes:

  • The check keyword argument of CheckConstraint is deprecated in favor of condition.

This is also reflected in the documentation for CheckConstraint

Environment

  • Python 3.11.4
  • Django 5.1.0
  • django-tasks 0.3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions