I
I
Ilya Chichak2019-12-31 15:59:43
Django
Ilya Chichak, 2019-12-31 15:59:43

Is there a way to make an analogue of Viewset without Rest Framework?

There are several models, each of which is supposed to have a set of 5 views:
ListView, DetailView, CreateView, UpdateView, DeleteView (in which, by and large, only the model changes)
Is it possible to somehow automate the creation of such a set of views?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2019-12-31
@deliro

View the code of View Sets in DRF. Do the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question