From 1757f34f59610b6f4460ea80d783a29852be384e Mon Sep 17 00:00:00 2001
From: bniton <bartek.niton@gmail.com>
Date: Tue, 9 Oct 2018 18:16:45 +0200
Subject: [PATCH] Fix create_TEI_walenty script.

---
 dictionary/management/commands/create_TEI_walenty.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dictionary/management/commands/create_TEI_walenty.py b/dictionary/management/commands/create_TEI_walenty.py
index 2a73eac..66a09f2 100644
--- a/dictionary/management/commands/create_TEI_walenty.py
+++ b/dictionary/management/commands/create_TEI_walenty.py
@@ -144,7 +144,7 @@ class Command(BaseCommand):
 
     def print_statistics_by_pos(self, lemmas):
         for pos in POS.objects.all():
-            pos_lemmas = lemmas.filter(entry_obj__tag=pos)
+            pos_lemmas = lemmas.filter(entry_obj__pos=pos)
             if pos_lemmas.exists():
                 count = {'frames': 0,
                          'arguments': 0}
--
libgit2 0.22.2