I have FileField in my django model:
file = models.FileField(upload_to=FOLDER_FILES_PATH)
In Django admin section for changing this model I have full path to this file (by default):
Currently: /home/skyfox/Projects/fast_on_line/order_processor/orders_files/mydog2_2.jpg
How can I show link for downloading this file for my admin panel users?
list_display
option is only available forModelAdmin
. If using anInlineModelAdmin
thenfile_link
needs to be infields
as well asreadonly_fields
. – Pawl