Skip to content

Commit 23f40c0

Browse files
committed
Document args and return value
1 parent c045c95 commit 23f40c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

changeform_actions/views.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ def run_action_for_model_instance(request):
2424
2525
admin.ChangeFormActionsMixin
2626
27+
POST Args:
28+
29+
app_label: str = The app label of the model.
30+
31+
model_name: str = The model name.
32+
33+
pk: int = The primary key of the model instance.
34+
35+
action: str = The action name to run.
36+
37+
Returns:
38+
39+
HttpResponseRedirect = Redirect back to the changeform page.
40+
2741
"""
2842
referer_url: str = request.META["HTTP_REFERER"]
2943

0 commit comments

Comments
 (0)