Bulk deletion of bookmarks raises TypeError exception #11453

Closed
opened 2025-12-29 21:45:25 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Aug 6, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.5

Python Version

3.10

Steps to Reproduce

  1. Bookmark one or more objects in NetBox
  2. Navigate to the bookmarks view under the user menu
  3. Attempt to bulk delete one or more bookmarks

Expected Behavior

The selected bookmarks should be deleted.

Observed Behavior

A TypeError exception is raised:

TypeError at /extras/bookmarks/delete/
for linkify=True, '1' must have a method get_absolute_url
Originally created by @jeremystretch on GitHub (Aug 6, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.5 ### Python Version 3.10 ### Steps to Reproduce 1. Bookmark one or more objects in NetBox 2. Navigate to the bookmarks view under the user menu 3. Attempt to bulk delete one or more bookmarks ### Expected Behavior The selected bookmarks should be deleted. ### Observed Behavior A TypeError exception is raised: ``` TypeError at /extras/bookmarks/delete/ for linkify=True, '1' must have a method get_absolute_url ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:45:25 +01:00
adam closed this issue 2025-12-29 21:45:25 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 6, 2025):

The exception is due to setting linkify=True on the id column defined on the base NetBoxTable class. (The Bookmark model has no get_absolute_url() method.)

@jeremystretch commented on GitHub (Aug 6, 2025): The exception is due to setting `linkify=True` on the `id` column defined on the base NetBoxTable class. (The Bookmark model has no `get_absolute_url()` method.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11453