Skip to content

Commit 74aed03

Browse files
authored
Django 3.x upgrade (#10668)
Closes #9356
1 parent 721104a commit 74aed03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

readthedocs/notifications/views.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Django views for the notifications app."""
2-
from django.contrib import admin, messages
2+
from django.contrib import messages
33
from django.http import HttpResponseRedirect
44
from django.views.generic import FormView
55

@@ -42,9 +42,7 @@ def get_form_kwargs(self):
4242
def get_initial(self):
4343
"""Add selected ids to initial form data."""
4444
initial = super().get_initial()
45-
initial["_selected_action"] = self.request.POST.getlist(
46-
admin.ACTION_CHECKBOX_NAME,
47-
)
45+
initial["_selected_action"] = self.request.POST.getlist("_selected_action")
4846
return initial
4947

5048
def form_valid(self, form):

0 commit comments

Comments
 (0)