harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-0395harbor download openthoughts/tasktrove-exp-rpt-issue-issue-0395Problem description
What to change (files to create/modify)
Files to inspect (before state)
Code to review (before state)
# /app/django/db/models/constraints.py
class UniqueConstraint(Constraint):
def __init__(self, *, name=None, fields=None, condition=None, include=None, opclasses=None, deferrable=None, **kwargs):
# ... (other initialization logic)
# Existing rule (example excerpt you start from)
if conditions and deferrable:
raise ValueError(
'UniqueConstraint with conditions cannot be deferred.'
)
if not isinstance(deferrable, (type(None), Deferrable)):
raise ValueError(
'UniqueConstraint.deferrable must be a Deferrable instance.'
)
# ... (rest of initialization)
What to implement (target behavior)
Expected error messages (examples)
Tests and documentation (guidance, not required to provide patches)
Notes for the task
What you need to deliver
This task is designed to be completed without cloning the entire repository; you should only modify the indicated file path in /app/ and ensure the changes pass your test suite.