From f1d501d34eaa9a1b42c8cb9c09b345008ffe3103 Mon Sep 17 00:00:00 2001 From: Brad Gentry Date: Sat, 30 Oct 2021 09:02:10 -0400 Subject: [PATCH] Removed redundant refresh following the update procedure. --- drf_writable_nested/mixins.py | 1 - 1 file changed, 1 deletion(-) diff --git a/drf_writable_nested/mixins.py b/drf_writable_nested/mixins.py index d3dc4c4..72d5dfd 100644 --- a/drf_writable_nested/mixins.py +++ b/drf_writable_nested/mixins.py @@ -288,7 +288,6 @@ def update(self, instance, validated_data): ) self.update_or_create_reverse_relations(instance, reverse_relations) self.delete_reverse_relations_if_need(instance, reverse_relations) - instance.refresh_from_db() return instance def perform_nested_delete(self, pks_to_delete, model_class, instance, related_field, field_source):