TGViewer
Находки в опенсорсе: Python Находки в опенсорсе: Python @opensource_findings_python · 1.06K subscribers
Post #187 766
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Test that `HttpResponseRedirect` works and provide `APIRedirect` exception (#107)


We have a TODO item for redirects:

django-modern-rest/django_modern_rest/controller.py

Line 187 in be877dc

DRF uses regular HttpResonseRedirect and it seems to work well.
We need to test that we also can return HttpResponseRedirect in @validate endpoints.

In @modify endpoints we should better provide a helper called APIRedirect which should be a subclass of APIError with location field.

See the original implementation of HttpRedirectResponse here https://github.com/django/django/blob/ca3e0484ef31d13053af6a9d50667813e22fc282/django/http/response.py#L628-L653

Make sure that preserve_request also works.

@Peopl3s are you interested? This is a nice beginner-friendly task :)


#enhancement #help_wanted #django_modern_rest
sent via relator
More from @opensource_findings_python
  1. Sep 23, 2026🚀 New issue to ag2ai/faststream by @IvanKirpichnikov 📝 Feature: Implementation of the `A…
  2. Sep 22, 2026🚀 New issue to faststream-community/zMQTT by @borisalekseev 📝 Mark flaky Artemis test xf…
  3. Sep 17, 2026Помните про https://github.com/ozeranskii/httptap? Я писал о нем давно еще - > тут. Наклеп…
  4. Sep 15, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `test_custom_union_form…
  5. Sep 13, 2026🚀 New issue to wemake-services/django-modern-rest by @milssky 📝 Changes in benchmarking…
  6. Sep 13, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 Fix `operation_id` defa…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →