How to get and process Input for django-multiselectfield in Django rest framework

2018-07-14 Thread jagruti . mscit16
I have attched the issue related ss also


weekday = MultiSelectField(
choices=WEEK_DAYS_CHOICES, max_length=10, default=True)

WEEK_DAYS_CHOICES = (
('Monday', 'Monday'),
('Tuesday', 'Tuesday'),
('Wednesday', 'Wednesday'),
('Thuersday', 'Thuersday'),
('Friday', 'Friday'),
('Saturday', 'Saturday'),
('Sunday', 'Sunday'),
)


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/28fc496d-6368-4864-af8c-0b142fb59e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get and process Input for django-multiselectfield in Django rest framework via form-data

2018-07-14 Thread jagruti . mscit16
WEEK_DAYS_CHOICES = (
('Monday', 'Monday'),
('Tuesday', 'Tuesday'),
('Wednesday', 'Wednesday'),
('Thuersday', 'Thuersday'),
('Friday', 'Friday'),
('Saturday', 'Saturday'),
('Sunday', 'Sunday'),
)

weekday = MultiSelectField(
choices=WEEK_DAYS_CHOICES, max_length=10, default=True)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f7be38d6-1631-4f19-a9f0-5790a3fdfb4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.