admin.ModelAdmin.save_related()

ModelAdmin.save_related(request, form, formsets, change) [source]

The save_related method is given the HttpRequest, the parent ModelForm instance, the list of inline formsets and a boolean value based on whether the parent is being added or changed. Here you can do any pre- or post-save operations for objects related to the parent. Note that at this point the parent object and its form have already been saved.

doc_Django
2016-10-09 18:33:56
Comments
Leave a Comment

Please login to continue.