Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce redundancy in views #10

Closed
kevinbowen777 opened this issue May 26, 2022 · 0 comments
Closed

Reduce redundancy in views #10

kevinbowen777 opened this issue May 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kevinbowen777
Copy link
Owner

We essentially repeat the queryset and serializer_class for each view, even
though the generic view extended is different. Take a look at how viewsets
and routers address this issue and allow us to create the same API views
and URLs with much less code.

ref: backend/todos/views.py

@kevinbowen777 kevinbowen777 added the enhancement New feature or request label May 26, 2022
@kevinbowen777 kevinbowen777 self-assigned this May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant