These are chat archives for wronglink/django-rest-framework

Sep 2016
Sep 08 2016 09:53
hey, is there a way to make instance out of serializer without calling .save() method ?
broken serializer tries to write to db while loading object, that a bit confusing, but at the moment i am not able to fix serializer itself
Sep 08 2016 10:55
You mean like creating new object without saving to db? You could subclass save method do do exactly what you need - without calling model. Create. Or implement you custom method If you prefer to leave intact.
I mean subclass the serializer and override save method.
Sep 08 2016 11:38
thanks, I think that would help