Answer the question
In order to leave comments, you need to log in
How to implement a dynamic list in the database model?
Good afternoon, I'm new to the backend and therefore, perhaps a stupid question. I want to create a training REST Api service in Django that would simply store information about the user.
The user in JSON can be represented like this:
{
"citizen_id": 1,
"town": "Москва",
"street": "Льва Толстого",
"building": "16к7стр5",
"apartment": 7,
"name": "Иванов Иван Иванович",
"birth_date": " 26.12.1986",
"gender": "male",
"relatives": [2,4] // id родственников
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question