Well, the objects are definitely getting created in the database. But when 
DRF is trying to send the output it tries to deserialize the objects in the 
to_representation function, but as you are using a list field it simply 
cannot deserialize as many to many relationship , since it returns a 
manager and not a iterable.
Thats why you are getting a error.


Maybe one way to run your code using List Field, is to override the 
to_representation function and manually add the IPs to the attribute. 
But this is gonna be too much hassle and your code may become ugly.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to