-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework validation, add queryset filter method (#788)
* Extract validation and filtering from caching * Remove STRICTNESS, handle strictness in views - Remove 'FILTERS_STRICTNESS' setting. - Remove 'strict' option from FilterSet. - Add 'raise_exception' class attribute to DjangoFilterBackend. - Add 'strict' and 'get_strict' to FilterMixin. * Add 'is_valid()' and 'errors' to FilterSet API * Add FilterSet.get_form_class() * Remove strictness from tests * Drop FilterSet strict/together docs * Add note on overriding FilterSet classmethods * Add FilterSet API tests * Add tests for view strictness * Rework 'raw_validation' util * Update filter backend+tests
- Loading branch information
1 parent
02a128f
commit e5a56b7
Showing
18 changed files
with
275 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.