Skip to content

Commit

Permalink
fix: carousel link title
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Sep 16, 2021
1 parent 605fa0d commit 32baa45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 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.26.2',
version='0.26.3',
description="uniCMS is a Django Web Content Management System",
long_description=README,
long_description_content_type='text/markdown',
Expand Down
3 changes: 2 additions & 1 deletion src/cms/carousels/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class Meta:
verbose_name_plural = _("Carousel Item Links")

def get_title(self):
return self.title if self.title_preset == 'custom' else self.title_preset
labels_dict = dict(CMS_LINKS_LABELS)
return self.title if self.title_preset == 'custom' else labels_dict[self.title_preset]

def is_lockable_by(self, user):
item = self.carousel_item.carousel
Expand Down
2 changes: 0 additions & 2 deletions src/cms/pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def get_blocks(self, section=None):
# something that caches ...
if hasattr(self, f'_blocks_{section}'):
return getattr(self, f'_blocks_{section}')
#

# query_params = dict(is_active=True)
query_params = {}
Expand Down Expand Up @@ -186,7 +185,6 @@ def get_blocks(self, section=None):
if _blocks:
# cache result ...
setattr(self, f'_blocks_{section}', _blocks)

return _blocks

def get_blocks_placeholders(self):
Expand Down

0 comments on commit 32baa45

Please sign in to comment.