We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3cb85e commit 4a80446Copy full SHA for 4a80446
1 file changed
src/community_db/views.py
@@ -50,6 +50,17 @@ def get_queryset(self):
50
# Return the queryset now that we have filtered it (if we need to)
51
return queryset
52
53
+ def get_context_data(self, **kwargs):
54
+ # Get the default context that would be generated
55
+ context = super().get_context_data(**kwargs)
56
+
57
+ # Get the search text and add it to the context
58
+ search_text = self.request.GET.get("search")
59
+ context["search_text"] = search_text
60
61
+ # Return our new context
62
+ return context
63
64
65
class PersonDetailView(DetailView):
66
model = Person
0 commit comments