mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 23:54:27 -04:00
refactor: Remove unneeded prefetch related
This commit is contained in:
parent
c565fad75c
commit
0f13087a09
2 changed files with 2 additions and 4 deletions
|
@ -98,7 +98,6 @@ class PublicArchiveView(ListView):
|
|||
query = self.request.GET.get('q')
|
||||
if query:
|
||||
qs = Snapshot.objects.filter(title__icontains=query)
|
||||
qs = qs.prefetch_related("archiveresult_set").all()
|
||||
for snapshot in qs:
|
||||
snapshot.icons = get_icons(snapshot)
|
||||
return qs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue