Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: directory listing with svg image #1470

Closed

Conversation

fabien-michel
Copy link
Contributor

Description

fa385bd2b4b3022f54499bbb3c603d463f4baf2e removed the _view suffix from url name

Related resources

  • #...
  • #...

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

fa385bd removed the _view suffix to url name
@@ -139,7 +139,7 @@
</td>
<td class="column-action">
{% if file.canonical_url %}
<a href="{% if 'svg' in file.mime_type %}{% url 'admin:filer_image_expand_view' file.pk %}{% else %}{{ file.canonical_url }}{% endif %}"
<a href="{% if 'svg' in file.mime_type %}{% url 'admin:filer_image_expand' file.pk %}{% else %}{{ file.canonical_url }}{% endif %}"
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted!
I would like to check if this also works for a custom image model.

fsbraun added a commit to fsbraun/django-filer that referenced this pull request May 19, 2024
@fsbraun
Copy link
Sponsor Member

fsbraun commented May 19, 2024

@fabien-michel I will close the PR in favour of #1471 : You found a second bug, which leads the corrected reverse name to fail of the Image model is swapped out. Thank you for bringing this up! I'd appreciate if you took a look at #1471 and gave me some feedback!

@fsbraun fsbraun closed this May 19, 2024
@fabien-michel
Copy link
Contributor Author

#1471 seems to also fix the directory listing containing svg file

fsbraun added a commit that referenced this pull request May 21, 2024
#1471)

* Fix #1377

* Fix issue #1470

* Update tests

* Update `tox.ini`

* Update tox.ini

Co-authored-by: Mark Walker <theshow@gmail.com>

---------

Co-authored-by: Mark Walker <theshow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants