Treat author_sort = _('Unknown') as null

This commit is contained in:
Kovid Goyal 2011-11-08 13:32:12 +05:30
parent 380ea0d76c
commit cef604bda2
2 changed files with 1 additions and 2 deletions

View File

@ -32,6 +32,7 @@ NULL_VALUES = {
'device_collections': [], 'device_collections': [],
'author_sort_map': {}, 'author_sort_map': {},
'authors' : [_('Unknown')], 'authors' : [_('Unknown')],
'author_sort' : _('Unknown'),
'title' : _('Unknown'), 'title' : _('Unknown'),
'user_categories' : {}, 'user_categories' : {},
'author_link_map' : {}, 'author_link_map' : {},

View File

@ -173,8 +173,6 @@ def get_components(template, mi, id, timefmt='%b %Y', length=250,
tsorder = tweaks['save_template_title_series_sorting'] tsorder = tweaks['save_template_title_series_sorting']
format_args = FORMAT_ARGS.copy() format_args = FORMAT_ARGS.copy()
format_args.update(mi.all_non_none_fields()) format_args.update(mi.all_non_none_fields())
if mi.author_sort == _('Unknown'):
format_args['author_sort'] = _('Unknown')
if mi.title: if mi.title:
if tsorder == 'strictly_alphabetic': if tsorder == 'strictly_alphabetic':
v = mi.title v = mi.title