Django Model MultipleChoice

You need to think about how you are going to store the data at a database level. This will dictate your solution.

Presumably, you want a single column in a table that is storing multiple values. This will also force you to think about how you will serialize – for example, you can’t simply do comma separated if you need to store strings that might contain commas.

However, you are probably best off using a solution like django-multiselectfield

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)