MCPcopy
hub / github.com/django/django / response_post_save_add

Method response_post_save_add

django/contrib/admin/options.py:1790–1795  ·  view source on GitHub ↗

Figure out where to redirect after the 'Save' button has been pressed when adding a new object.

(self, request, obj)

Source from the content-addressed store, hash-verified

1788 return HttpResponseRedirect(post_url)
1789
1790 def response_post_save_add(self, request, obj):
1791 """
1792 Figure out where to redirect after the 'Save' button has been pressed
1793 when adding a new object.
1794 """
1795 return self._response_post_save(request, obj)
1796
1797 def response_post_save_change(self, request, obj):
1798 """

Callers 1

response_addMethod · 0.95

Calls 1

_response_post_saveMethod · 0.95

Tested by

no test coverage detected