tolomea / django-data-browser

Django app for user friendly querying of Django models
BSD 3-Clause "New" or "Revised" License
350 stars 28 forks source link

URLField clickable link #29

Closed Dleau closed 3 years ago

Dleau commented 3 years ago

Hi, again. I'm using URLField in models.py.

image

In /admin, the field product_url shows as a clickable link.

image

But in /data-browser, it does not. How could I make this field a clickable link?

image

Thank you for the help!! Again, this DDB project is amazing.

tolomea commented 3 years ago

That's a bug, I'll get that fixed for you.

tolomea commented 3 years ago

That's in the 4.0.1 release I just did, let me know how it works out

Dleau commented 3 years ago

Fixed! Thank you so much!

tolomea commented 3 years ago

I was thinking about this some more and I've moved the rendering of those links to the frontend (also for image and file fields) this has two notable impacts.

1: they will show as strings in JSON and CSV 2: they will have all the same filtering options as strings

This is in the 4.0.2 release I just did.