[Solved] Understanding “(item, item) for item in …” [closed]

[ad_1]

Please see this question.

It’s looks like you need a collection of tuples (value, label) as chooses for the CharField model. In your case, the value and the label are the same.

[ad_2]

solved Understanding “(item, item) for item in …” [closed]