Access filefield's/imagefield's url in template

36 views
Skip to first unread message

MH

unread,
May 8, 2020, 4:30:29 AM5/8/20
to Django users
Hi

I just saw that when I pass not an object, but a queryset with values_list to a template, I cannot access a filefield like object.field_name.url, as url is a property.

Can you give me advice how to get from the values_list to the url property?

Best regards
MH
Reply all
Reply to author
Forward
0 new messages