Commit 8d5f92e926cb91cf87024faa23a9f68bcac44eba

Authored by Bartłomiej Nitoń
1 parent 0da7049f

TEI xml generation bugfix.

Showing 1 changed file with 2 additions and 1 deletions
dictionary/teixml.py
... ... @@ -460,8 +460,9 @@ def write_example(parent_elem, entry, example):
460 460  
461 461 def get_and_write_meaning_link(parent_elem, entry, example):
462 462 try:
  463 + entry_lex_units = entry.lexical_units()
463 464 lex_unit_example = LexicalUnitExamples.objects.get(example=example,
464   - lexical_unit__base=entry.name)
  465 + lexical_unit__in=entry_lex_units)
465 466 meaning = lex_unit_example.lexical_unit
466 467 meaning_xml_id = u'#wal_%s.%s-mng' % (str(entry.id), str(meaning.id))
467 468  
... ...