We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721104a commit 74aed03Copy full SHA for 74aed03
readthedocs/notifications/views.py
@@ -1,5 +1,5 @@
1
"""Django views for the notifications app."""
2
-from django.contrib import admin, messages
+from django.contrib import messages
3
from django.http import HttpResponseRedirect
4
from django.views.generic import FormView
5
@@ -42,9 +42,7 @@ def get_form_kwargs(self):
42
def get_initial(self):
43
"""Add selected ids to initial form data."""
44
initial = super().get_initial()
45
- initial["_selected_action"] = self.request.POST.getlist(
46
- admin.ACTION_CHECKBOX_NAME,
47
- )
+ initial["_selected_action"] = self.request.POST.getlist("_selected_action")
48
return initial
49
50
def form_valid(self, form):
0 commit comments