Skip to content

Commit

Permalink
provide unique basemane for drf router viewsets
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnmil committed Aug 27, 2024
1 parent be81516 commit 129f110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/django_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def get_queryset(self, *args, **kwargs):
raise ValueError("BØØM!")

router = routers.SimpleRouter()
router.register(r"users", UserViewSet)
router.register(r"crash", ErrorViewSet)
router.register(r"users", UserViewSet, basename="user")
router.register(r"crash", ErrorViewSet, basename="error")

return router

Expand Down

0 comments on commit 129f110

Please sign in to comment.