django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Filter field_contents_foreign_linked error when value is None

Open pacotole opened this issue 7 years ago • 1 comments

When field_contents_foreign_linked value is None admin_url() triggers an error.

Simple fix it on https://github.com/darklow/django-suit/blob/d9a7d7693711893986d24c49983afe8dde64d524/suit/templatetags/suit_tags.py#L63 with:

if value is not None and isinstance(fieldtype, ForeignKey):

pacotole avatar Sep 09 '17 11:09 pacotole

We're seeing the same problem. Is there a chance for an upstream fix instead of us having to monkeypatch?

phihag avatar Jan 30 '19 13:01 phihag