bruth/django-preserialize

QuerySet prehook is incorrectly propagated to models

bruth opened this issue · 0 comments

The offending lines are here: https://github.com/bruth/django-preserialize/blob/master/preserialize/serialize.py#L120-L126. The prehook needs to be removed from the options prior to passing the to the model instances: https://github.com/bruth/django-preserialize/blob/master/preserialize/serialize.py#L142-L143