[PR #540] [MERGED] hotfix: Fixes 500 error on Admin search #4228

Closed
opened 2026-03-15 01:33:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/540
Author: @jdcaballerov
Created: 11/17/2020
Status: Merged
Merged: 11/17/2020
Merged by: @pirate

Base: masterHead: hotfix-search-fields


📝 Commits (1)

  • 8b0250c Fixes 500 error on search

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 archivebox/core/admin.py (+1 -1)

📄 Description

Summary

The class SnapshotAdmin search_fields includes the tags ManyToMany field causing a

django.core.exceptions.FieldError: Related Field got invalid lookup: icontains error.

A related search field tags__name should be used.

Related issues

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ArchiveBox/ArchiveBox/pull/540 **Author:** [@jdcaballerov](https://github.com/jdcaballerov) **Created:** 11/17/2020 **Status:** ✅ Merged **Merged:** 11/17/2020 **Merged by:** [@pirate](https://github.com/pirate) **Base:** `master` ← **Head:** `hotfix-search-fields` --- ### 📝 Commits (1) - [`8b0250c`](https://github.com/ArchiveBox/ArchiveBox/commit/8b0250caebb4ddaf46d4ad3721e403e7652cae43) Fixes 500 error on search ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `archivebox/core/admin.py` (+1 -1) </details> ### 📄 Description # Summary The class `SnapshotAdmin` `search_fields` includes the `tags` `ManyToMany` field causing a ``` django.core.exceptions.FieldError: Related Field got invalid lookup: icontains error. ``` A related search field `tags__name` should be used. # Related issues # Changes these areas - [x] Bugfixes - [ ] Feature behavior - [ ] Command line interface - [ ] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 01:33:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#4228
No description provided.