Skip to content

Commit

Permalink
Replaced deprecated 'commit_on_success' with 'atomic'.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightbulbjim committed Nov 28, 2014
1 parent 681c90c commit 5a6d10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nested_inline/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def all_valid_with_nesting(self, formsets):
return True

@csrf_protect_m
@transaction.commit_on_success
@transaction.atomic
def add_view(self, request, form_url='', extra_context=None):
"The 'add' admin view for this model."
model = self.model
Expand Down Expand Up @@ -238,7 +238,7 @@ def add_view(self, request, form_url='', extra_context=None):
return self.render_change_form(request, context, form_url=form_url, add=True)

@csrf_protect_m
@transaction.commit_on_success
@transaction.atomic
def change_view(self, request, object_id, form_url='', extra_context=None):
"The 'change' admin view for this model."
model = self.model
Expand Down

0 comments on commit 5a6d10d

Please sign in to comment.