R
R
Rassul Nassyrov2020-09-24 15:17:40
Django
Rassul Nassyrov, 2020-09-24 15:17:40

How to implement a subscribers form under Django?

I roughly know that you need to create an array of friends in models.py for each user and save it to the user's array when sending the POST method, but I don't know how ArrayField works in Django, if anyone has other ideas without arrays, I'm waiting for your answers or documentation about ArrayField which I Have not found...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-09-24
@nssr02

At you problems with understanding of relations in a DB. The usual solution: the user has ManyToManyField, or you create a separate table with ForeignKey by hand (which is almost always the same as what ManyToManyField does)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question