Skip to content

Commit

Permalink
Fixes guid display_template links
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Aug 9, 2023
1 parent 96daa14 commit 85b2c9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chowda/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class CollectionView(ModelView):
MediaFilesGuidLinkField(
'media_files',
label='GUID Links',
display_template='displays/media_files.html',
),
]

Expand All @@ -86,6 +87,7 @@ class BatchView(ModelView):
MediaFilesGuidLinkField(
'media_files',
label='GUIDs',
display_template='displays/media_files.html',
exclude_from_list=True,
),
]
Expand Down
4 changes: 3 additions & 1 deletion templates/displays/media_files.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% for media in data %}
<li><a href="../../media-file/detail/{{ media.id }}">{{ media.guid }}</a></li>
<li>
<a href="../../media-file/detail/{{ media.guid }}">{{ media.guid }}</a>
</li>
{% endfor %}

0 comments on commit 85b2c9f

Please sign in to comment.