Commit c62fee19066e3e79b1a006f3a7dc782f5e12f1cc

Authored by janek37
1 parent c996c44c

poprawka do migracji

dictionary/migrations/0012_translate_refl.py
... ... @@ -23,8 +23,9 @@ class Migration(DataMigration):
23 23 part_of_speech__lexical_class__symbol='v')
24 24 for l in verbs:
25 25 v = l.entry_suffix.strip(' ?')
26   - av = orm.LexemeAttributeValue.objects.get(value=v, attribute=attr)
27   - av.lexemes.add(l) #add
  26 + if v:
  27 + av = orm.LexemeAttributeValue.objects.get(value=v, attribute=attr)
  28 + av.lexemes.add(l) #add
28 29 # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
29 30  
30 31 def backwards(self, orm):
... ...