Skip to content

Commit

Permalink
Add Model.validate_constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
georgek committed Oct 11, 2023
1 parent 72e4deb commit 5c0ace7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django-stubs/db/models/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Model(metaclass=ModelBase):
def clean(self) -> None: ...
def clean_fields(self, exclude: Collection[str] | None = ...) -> None: ...
def validate_unique(self, exclude: Collection[str] | None = ...) -> None: ...
def validate_constraints(self, exclude: Collection[str] | None = ...) -> None: ...
def unique_error_message(
self,
model_class: type[Self],
Expand Down

0 comments on commit 5c0ace7

Please sign in to comment.