also index date_envoi

This commit is contained in:
Frédéric Péters 2012-10-09 15:22:44 +02:00
parent b7484beb02
commit d5ef8dd5fe
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ from themis.fields.vocabs import ContactsSource
def mailDateIndexer(obj):
if obj.portal_type not in ('courrier_entrant', 'courrier_sortant'):
return None
for attr in ('date_reelle_courrier', 'date_reception'):
for attr in ('date_reelle_courrier', 'date_reception', 'date_envoi'):
if not hasattr(obj, attr):
continue
if getattr(obj, attr):