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

Add BaseConstraint.get_violation_error_message() #2178

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions django-stubs/db/models/constraints.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class BaseConstraint:
def constraint_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ...
def create_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ...
def remove_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ...
def get_violation_error_message(self) -> str: ...
def deconstruct(self) -> tuple[str, Sequence[Any], dict[str, Any]]: ...
def clone(self) -> Self: ...

Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ django.contrib.gis.db.models.Aggregate.name
django.contrib.gis.db.models.AutoField.rel_db_type
django.contrib.gis.db.models.BLANK_CHOICE_DASH
django.contrib.gis.db.models.BaseConstraint.contains_expressions
django.contrib.gis.db.models.BaseConstraint.get_violation_error_message
django.contrib.gis.db.models.BaseConstraint.validate
django.contrib.gis.db.models.BigAutoField.rel_db_type
django.contrib.gis.db.models.BigIntegerField.formfield
Expand Down Expand Up @@ -671,7 +670,6 @@ django.db.models.Aggregate.name
django.db.models.AutoField.rel_db_type
django.db.models.BLANK_CHOICE_DASH
django.db.models.BaseConstraint.contains_expressions
django.db.models.BaseConstraint.get_violation_error_message
django.db.models.BaseConstraint.validate
django.db.models.BigAutoField.rel_db_type
django.db.models.BigIntegerField.formfield
Expand Down Expand Up @@ -848,7 +846,6 @@ django.db.models.base.method_get_order
django.db.models.base.method_set_order
django.db.models.base.subclass_exception
django.db.models.constraints.BaseConstraint.contains_expressions
django.db.models.constraints.BaseConstraint.get_violation_error_message
django.db.models.constraints.BaseConstraint.validate
django.db.models.constraints.CheckConstraint.validate
django.db.models.constraints.UniqueConstraint.contains_expressions
Expand Down
Loading