I can see a few issues here.

   1. You defined *'strt_day'* and *'end_day'* inside the *Meta* class, you 
   cannot do this. It won't work correctly.
   2. If you actually get back a real PK from the DB then the DB at least 
   thinks it got created.

Are you sure it didn't fail for some other reason?

To be honest, the scenario you propose is kind of impossible, so I don't 
know what else to suggest.

~Carl

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/4f911028-e11a-48bb-9412-7d4a6f769553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to