Commit 10fe054475ef89b9086435c35539998971619598

Authored by janek37
1 parent 4188ea9f

wyświetlanie rodzaju przy wyborze homonimu dla skrs

dictionary/ajax_lexeme_view.py
... ... @@ -493,7 +493,7 @@ def cr_homonyms(request, entry, cr_type):
493 493 cr_type = CrossReferenceType.objects.get(pk=cr_type)
494 494 pos = cr_type.to_pos
495 495 lexemes = Lexeme.objects.filter(entry=entry, part_of_speech=pos)
496   - if pos.symbol == 'subst':
  496 + if pos.lexical_class_id == 'subst':
497 497 labels = (u'Nr hom.', u'Rodzaj', u'Wzór')
498 498 make_row = lambda lexeme, lip_data: (
499 499 lexeme.homonym_number, lip_data['genders'], lip_data['patterns'])
... ...