R
R
Rouslan9432020-02-01 21:56:28
Django
Rouslan943, 2020-02-01 21:56:28

Choicefield in db?

Good day ! Is it possible to store multiple data in one field in a database? How is it done in django. (choicefield) ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-02-01
​​@Rouslan943

In some DBMS it is possible, but in the case of relational DBMS it is not a good idea.

V
Vadim Shatalov, 2020-02-01
@netpastor

1. Show where ChoiceFiled is in any standard version of django
2. There are choices for many standard fields - but there is a little about something else
3. To store any bunch of values ​​in Postgres, for example, you can use JSONField

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question