Release/3.0.0 - #894
Draft
tomwojcik wants to merge 2 commits into
Draft
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## migrate-to-pytest-2 #894 +/- ##
=======================================================
+ Coverage 98.67% 99.18% +0.50%
=======================================================
Files 27 60 +33
Lines 908 1224 +316
=======================================================
+ Hits 896 1214 +318
+ Misses 12 10 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
haxoza
approved these changes
Aug 11, 2025
haxoza
left a comment
Member
There was a problem hiding this comment.
The dispatcher mechanizm looks a bit complicated, but do I get it correctly that it is the cost of splitting the "god" view and keeping the API the same?
| method = request.method | ||
| if method in method_view_map: | ||
| view_class = method_view_map[method] | ||
| return view_class.as_view()(request, *args, **kwargs) |
Member
There was a problem hiding this comment.
do we want to support function based views?
tomwojcik
marked this pull request as draft
July 21, 2026 20:15
Replace the 2.x god-object UserViewSet (CRUD plus nine @action methods, with permission and serializer dispatch keyed on self.action) with standalone views under djoser/views/, one module per endpoint, grouped by domain: activation, me, password, token, user, username. Views are configurable via the new VIEWS setting; hand-written URL configs replace the DRF router, with method dispatchers where several views share a path. 2.x URL behavior is preserved: dispatcher callables carry csrf_exempt, lookup regexes and format-suffix routes match 2.x, slash-less token/JWT paths redirect with 308, and HIDE_USERS 404s regardless of permission class. Also enables the docformatter pre-commit hook (multi-line summaries) and folds pytest.ini into pyproject.toml. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01879VbpYuX2k9AeUjUahxFV
Add tests for the VIEWS setting (test_configurable_views), the BaseMeAPIView queryset behavior (test_me_base), dispatcher CSRF exemption and 405 handling, format-suffix and slash-less URL compatibility, and the HIDE_USERS permission_denied contract on the split views. Update the URL snapshot for the hand-written URL configs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01879VbpYuX2k9AeUjUahxFV
tomwojcik
force-pushed
the
release/3.0.0
branch
from
August 1, 2026 16:37
38a3c15 to
eec9008
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.