Skip to content

Commit

Permalink
Merge pull request #161 from kinkerl/divio_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnarang95 authored Feb 15, 2024
2 parents 965cb2f + 654401d commit 9c85627
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion djangocms_navigation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def get(self, request, *args, **kwargs):
# Removing unpublished pages from queryset
if model == Page:
queryset_data = [
page for page in queryset_data if page.get_title_obj().versions.first().state != 'unpublished'
page for page in queryset_data
if getattr(page.get_title_obj().versions.first(), "state", None)
!= 'unpublished'
]

data = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

INSTALL_REQUIREMENTS = [
"Django>=1.11,<3.3",
"django-treebeard>=4.3",
"django-treebeard>=4.3,<4.6.0",
"django-cms",
]

Expand Down
14 changes: 7 additions & 7 deletions tests/requirements/requirements_base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ flake8
isort
lxml
tox
djangocms-versioning==1.2.2
djangocms-alias==1.11.0
djangocms-references==1.4.1
djangocms-version-locking==1.2.0
django-cms==4.0.1.dev2
djangocms-text-ckeditor==4.0.1.dev1
djangocms-moderation==2.1.5
https://github.com/django-cms/django-cms/tarball/4.0.0#egg=django-cms
https://github.com/divio/djangocms-text-ckeditor/tarball/support/4.0.x#egg=djangocms-text-ckeditor
https://github.com/django-cms/djangocms-versioning/tarball/1.2.2#egg=djangocms-versioning
https://github.com/FidelityInternational/djangocms-version-locking/tarball/master#egg=djangocms-version-locking
https://github.com/django-cms/djangocms-moderation/tarball/master#egg=djangocms-moderation
https://github.com/FidelityInternational/djangocms-references/tarball/master#egg=djangocms-references
https://github.com/django-cms/djangocms-alias/tarball/1.11.0#egg=djangocms-alias
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
flake8
isort
py{37,38,39}-dj{22}-sqlite-cms40
py{37,38,39}-dj{22,32}-sqlite-cms40

skip_missing_interpreters=True

Expand Down

0 comments on commit 9c85627

Please sign in to comment.