Skip to content

Commit

Permalink
WCM-408: remove fallback logic of teaserText
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinnaj94 committed Sep 27, 2024
1 parent dcfec22 commit 7f87c17
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/zeit/content/volume/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,9 @@ def product(self, value):
'volume_note',
)

_old_volume_note = zeit.cms.content.dav.DAVProperty(
zeit.content.volume.interfaces.IVolume['volume_note'],
zeit.cms.interfaces.DOCUMENT_SCHEMA_NS,
'teaserText',
)

@property
def volume_note(self):
text = self._volume_note or self._old_volume_note
text = self._volume_note
if text is None:
text = zeit.cms.config.required('zeit.content.volume', 'default-teaser-text')
return self.fill_template(text)
Expand Down

0 comments on commit 7f87c17

Please sign in to comment.