Wait, what does your serializer look like? I found this in the traceback:

ile "/Users//PycharmProjects///modelserializer.py" in create

  48.         return Screens.objects.create(**validated_data)

Are you sure that you are referencing the right serializer and/or is the
serializer referencing the right model? I wouldn't assume that a create()
call would be made for Screens.

-James
James,

I have commented save in model code. I have also changed the prefs field to
be char(20) for now.

I still get

'prefs' is an invalid keyword argument for this function

- Shekar



 --
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/99897c3a-1126-426c-be49-1e913ded3eeb%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/99897c3a-1126-426c-be49-1e913ded3eeb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUJaFYSrMCq-ZQJYN2jQXXuHED%3DpVYazVtbv3YvmHvqUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to