Need guidance

22 views
Skip to first unread message

Muhammad Shehzad

unread,
May 20, 2021, 11:30:14 AM5/20/21
to Django users
I wanna to store multiple value in django model using DRF e.g. i have to choose three days from a week. I am using django rest framework. I have tried many solution but failed



1. Which field i have to implement in django  model? CharField? Postgre ArrayField?
2. How to serialize the data to store multiple values


Thanks

lalit suthar

unread,
May 20, 2021, 12:34:54 PM5/20/21
to Django users
postgres ArrayField will be suitable for your requirement. Serialization will work the same like it works for other fields.
Reply all
Reply to author
Forward
0 new messages