Skip to content

Commit

Permalink
Add BaseConstraint.get_violation_error_message() (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w authored May 23, 2024
1 parent 496190e commit d03eaf1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit d03eaf1

Please sign in to comment.