Skip to content

Commit

Permalink
fix: URL of show references in action list of djangocms-versioning-fi…
Browse files Browse the repository at this point in the history
…ler list page (#48)

* fix: URL of `show references` in action list of djangocms-versioning-filer list page

* fix: update circleci/config.yml

* fix: update dj22_cms40.txt

* fix: update `requirements_base.txt`

* fix: update `requirements_base.txt`

* fix: Added CMS_CONFIRM_VERSION4 in test_settings to show intent of using v4

* fix: fix `test_list_display` test

* fix: remove extra blank lines

---------

Co-authored-by: Josh Yu <[email protected]>
  • Loading branch information
joshyu and Josh Yu authored Feb 7, 2024
1 parent 0b50506 commit dd54653
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ py37default: &py37default
- attach_workspace:
at: /tmp/images
- run: docker load -i /tmp/images/py37.tar || true
- run: docker run py37 tox -e $CIRCLE_STAGE
- run: docker run py37 tox -e $CIRCLE_JOB

py38default: &py38default
docker:
Expand All @@ -22,7 +22,7 @@ py38default: &py38default
- attach_workspace:
at: /tmp/images
- run: docker load -i /tmp/images/py38.tar || true
- run: docker run py38 tox -e $CIRCLE_STAGE
- run: docker run py38 tox -e $CIRCLE_JOB

py39default: &py39default
docker:
Expand All @@ -34,7 +34,7 @@ py39default: &py39default
- attach_workspace:
at: /tmp/images
- run: docker load -i /tmp/images/py39.tar || true
- run: docker run py39 tox -e $CIRCLE_STAGE
- run: docker run py39 tox -e $CIRCLE_JOB


py37_requires: &py37_requires
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog

Unreleased
==========
* fix: URL of `show references` in action list of djangocms-versioning-filer list page
* fix: Added CMS_CONFIRM_VERSION4 in test_settings to show intent of using v4
* fix: fix circleci build errors

1.4.2 (2022-05-23)
==================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

{% get_versioning_filer_references_url file as references_url %}
<a href="{{ references_url }}"
title="{% blocktrans %}Show references{% endblocktrans %}" class="action-button"><span class="fa fa-code-fork"></span></a>
title="{% blocktrans %}Show references{% endblocktrans %}" class="action-button cms-form-get-method"><span class="fa fa-code-fork"></span></a>
2 changes: 1 addition & 1 deletion tests/requirements/dj22_cms40.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r ./requirements_base.txt

Django>=2.2,<3.0
Django>=2.2,<4.0
6 changes: 3 additions & 3 deletions tests/requirements/requirements_base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ isort
tox

# Unreleased django-cms 4.0 compatible packages
https://github.com/django-cms/django-cms/tarball/develop-4#egg=django-cms
https://github.com/django-cms/djangocms-versioning/tarball/master#egg=djangocms-versioning
https://github.com/django-cms/djangocms-alias/tarball/master#egg=djangocms-alias
https://github.com/django-cms/django-cms/tarball/4.0.0#egg=django-cms
https://github.com/django-cms/djangocms-versioning/tarball/1.2.2#egg=djangocms-versioning
https://github.com/django-cms/djangocms-alias/tarball/1.11.0#egg=djangocms-alias
1 change: 1 addition & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"djangocms_references.test_utils.polls",
"djangocms_references.test_utils.nested_references_app",
],
"CMS_CONFIRM_VERSION4": True,
"MIGRATION_MODULES": {
"auth": None,
"cms": None,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from djangocms_alias.admin import AliasContentAdmin
from djangocms_alias.models import Alias, AliasContent, Category
from djangocms_versioning.models import Version


class AliasAdminReferencesMonkeyPatchTestCase(CMSTestCase):
Expand All @@ -22,6 +23,8 @@ def test_list_display(self):
name="Alias Reference Monkey Patch Content",
language="en",
)

Version.objects.create(content=alias_content, created_by=request.user)
content_type = ContentType.objects.get(app_label=alias._meta.app_label, model=alias._meta.model_name)
alias_admin = AliasContentAdmin(AliasContent, admin.AdminSite())
func = alias_admin.get_list_display(request)[-1]
Expand Down

0 comments on commit dd54653

Please sign in to comment.