Skip to content

Commit

Permalink
fix: unicms_publications templatetag
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Jul 12, 2021
1 parent 48d7b18 commit 9a27d54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_requirements(fname='requirements.txt'):

setup(
name="unicms",
version='0.22.4',
version='0.22.5',
description="uniCMS is a Django Web Content Management System",
long_description=README,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion src/cms/publications/templatetags/unicms_publications.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def load_publications_preview(context, template,
in_evidence=in_evidence,
categories_csv=categories_csv,
tags_csv=tags_csv)

pub_in_context = PublicationContext.objects.\
filter(**query_params).\
distinct().\
order_by('order')[0:number]
if not pub_in_context: return SafeString('')

Expand Down
9 changes: 0 additions & 9 deletions src/cms/templates/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@
('banner', _('Banner')),
('slider-2', _('Slider-2')),

# ('1','1'),
# ('2','2'),
# ('3','3'),
# ('4','4'),
# ('5','5'),
# ('6','6'),
# ('7','7'),
# ('8','8'),
# ('9','9'),
('pre-footer', _('Pre-Footer')),
('footer', _('Footer')),
('post-footer', _('Post-Footer')),
Expand Down

0 comments on commit 9a27d54

Please sign in to comment.