Opened 5 years ago

Closed 5 years ago

#15792 closed Bug (wontfix)

databrowse attempting to create urls out of non-models

Reported by: mstefanro@… Owned by: nobody
Component: contrib.databrowse Version: 1.2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When databrowse creates links on row view pages, it does not take into account for null foreign keys and can end up calling a method on a NoneType.

Attachments (2)

databrowse.datastructures.diff (1.2 KB) - added by mstefanro@… 5 years ago.
databrowse.datastructures patch
django-databrowse-fix-crash-on-null-foreign-keys.patch (651 bytes) - added by Aymeric Augustin 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by mstefanro@…

databrowse.datastructures patch

comment:1 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset
Needs documentation: unset
Needs tests: set
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 5 years ago by Aymeric Augustin

I hit that bug myself some time ago and solved it with a different patch (attached).

Changed 5 years ago by Aymeric Augustin

comment:3 Changed 5 years ago by Preston Holmes

Resolution: wontfix
Status: newclosed
UI/UX: unset

Databrowse is now deprecated, see #16907

Note: See TracTickets for help on using tickets.
Back to Top