Update fields.py

This commit is contained in:
jmmp 2019-02-26 17:58:20 +01:00 committed by GitHub
parent 430866abfa
commit e5955f780b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ SPLIT_MARKER = getattr(settings, 'SPLIT_MARKER', '<!-- split -->')
SPLIT_DEFAULT_PARAGRAPHS = getattr(settings, 'SPLIT_DEFAULT_PARAGRAPHS', 2)
def _excerpt_field_name(name): return '_%s_excerpt' % name
_excerpt_field_name = lambda name: '_%s_excerpt' % name
def get_excerpt(content):