A
A
astatium1352019-05-31 18:06:00
Django
astatium135, 2019-05-31 18:06:00

Django how to create a many to one relationship?

There are 3 models: Video, News and History
Is it possible to define a one-to-many relation in Video and News, which would allow one video or news to have many views (History), and one view to have only one video or news?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2019-05-31
@astatium135

https://docs.djangoproject.com/en/2.2/ref/contrib/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question