Skip to content

Commit

Permalink
Removed redundant refresh following the update procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Gentry committed Oct 30, 2021
1 parent b4da841 commit f1d501d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drf_writable_nested/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f1d501d

Please sign in to comment.