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

8th
Sep 2016
Anatoly
@Sindbag
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
JohnnyBDude
@JohnnyBDude
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 serializer.save intact.
I mean subclass the serializer and override save method.
Anatoly
@Sindbag
Sep 08 2016 11:38
thanks, I think that would help