Hi,

I have a class BPS:

class BPS(models.Model):
    """
    This is representation of
    UK BPS applications.
    """
    ...
    questions = ArrayField(models.IntegerField())


This field questions is ArrayField od integers.

And I also have Serializer for BPS.

When I want to create BPS objects from REST API with input:
[1,2]
I get this error:
[u'[1,2]']
A valid integer is required.


How should I create a proper serializer for this field?

Thanks.


-- 
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/cacd22df-0c4f-4834-846e-92c4dc61f94c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to