Skip to content

Commit

Permalink
fix: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Oct 28, 2024
1 parent 7ab9278 commit 671e2d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions djangocms_content_expiry/monkeypatch/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def get_list_display(func):
Register the compliance number field with the Versioning Admin
"""
def inner(self, request):
list_display = func(self, request)
list_display = list(func(self, request))
created_by_index = list_display.index('created_by')
return list_display[:created_by_index] + ('compliance_number',) + list_display[created_by_index:]
return list_display[:created_by_index] + ['compliance_number'] + list_display[created_by_index:]

return inner

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load static i18n %}

<a class="btn cms-versioning-action-btn related-widget-wrapper-link" data-popup="yes" id="additional_content_settings_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}">
<a class="btn cms-action-btn related-widget-wrapper-link" data-popup="yes" id="additional_content_settings_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}">
<img src="{% static 'djangocms_content_expiry/svg/file.svg' %}">
</a>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% load static i18n %}
<a class="btn cms-moderation-action-btn js-moderation-action related-widget-wrapper-link cms-versioning-action-btn" data-popup="yes" id="change_content_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}"><span class="svg-juxtaposed-font"><img src="{% static 'djangocms_content_expiry/svg/file.svg' %}" /></span></a>
<a class="btn cms-moderation-action-btn js-moderation-action related-widget-wrapper-link cms-action-btn" data-popup="yes" id="change_content_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}"><span class="svg-juxtaposed-font"><img src="{% static 'djangocms_content_expiry/svg/file.svg' %}" /></span></a>

0 comments on commit 671e2d4

Please sign in to comment.