Commit 7d6076eef14fadb0b88fa7e0cec0a5fb20b2af80
1 parent
ea5bb609
wprowadzona liczba selektywna
Showing
2 changed files
with
431 additions
and
0 deletions
dictionary/management/commands/import_data.py
... | ... | @@ -168,6 +168,18 @@ ATTRS = { |
168 | 168 | ('dokładniej', lambda x: x), |
169 | 169 | 'single', |
170 | 170 | ), |
171 | + u'liczba selektywna': ( | |
172 | + (('num',), None), | |
173 | + ( | |
174 | + ('sg', u'z l.p.'), | |
175 | + ('pl', u''), | |
176 | + ('sg/pl', u'Też z l.p.'), | |
177 | + ), | |
178 | + ('nota', lambda x: | |
179 | + 'sg/pl' if u'Też z l.p.' in x | |
180 | + else 'sg' if 'z l.p.' in x else 'pl'), | |
181 | + 'single', | |
182 | + ), | |
171 | 183 | } |
172 | 184 | |
173 | 185 | TEXT_ATTRS = { |
... | ... |
dictionary/migrations/0076_liczba_num.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +from south.utils import datetime_utils as datetime | |
3 | +from south.db import db | |
4 | +from south.v2 import DataMigration | |
5 | +from django.db import models | |
6 | +from common.util import no_history | |
7 | + | |
8 | + | |
9 | +VALUES = ( | |
10 | + ('sg', u'z l.p.'), | |
11 | + ('pl', u''), | |
12 | + ('sg/pl', u'Też z l.p.'), | |
13 | + ('nota', lambda x: | |
14 | + 'sg/pl' if u'Też z l.p.' in x | |
15 | + else 'sg' if 'z l.p.' in x else 'pl'), | |
16 | +) | |
17 | + | |
18 | +class Migration(DataMigration): | |
19 | + | |
20 | + def forwards(self, orm): | |
21 | + no_history() | |
22 | + attr = orm.LexemeAttribute.objects.create( | |
23 | + name=u'liczba selektywna', closed=True, multiple=False, | |
24 | + required=True, takes_gender=False) | |
25 | + attr.parts_of_speech.add(orm.PartOfSpeech.objects.filter(symbol='num')) | |
26 | + values_cache = {} | |
27 | + for val, display_val in VALUES: | |
28 | + values_cache[val], created = orm.LexemeAttributeValue.objects.get_or_create( | |
29 | + value=val, display_value=display_val, attribute=attr) | |
30 | + | |
31 | + lexemes = orm.Lexeme.objects.filter(part_of_speech__symbol='num') | |
32 | + def f(note): | |
33 | + return ('sg/pl' if u'Też z l.p.' in note | |
34 | + else 'sg' if 'z l.p.' in note else 'pl') | |
35 | + lexeme_attrs = [] | |
36 | + for l in lexemes: | |
37 | + attr_value = values_cache.get(f(l.note)) | |
38 | + if attr_value: | |
39 | + lexeme_attrs.append( | |
40 | + orm.LexemeAV(lexeme=l, attribute_value=attr_value)) | |
41 | + orm.LexemeAV.objects.bulk_create(lexeme_attrs, batch_size=500) | |
42 | + | |
43 | + def backwards(self, orm): | |
44 | + orm.LexemeAttribute.objects.filter(name=u'liczba selektywna').delete() | |
45 | + | |
46 | + models = { | |
47 | + u'auth.group': { | |
48 | + 'Meta': {'object_name': 'Group'}, | |
49 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
50 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), | |
51 | + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
52 | + }, | |
53 | + u'auth.permission': { | |
54 | + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, | |
55 | + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
56 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), | |
57 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
58 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
59 | + }, | |
60 | + u'auth.user': { | |
61 | + 'Meta': {'object_name': 'User'}, | |
62 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
63 | + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), | |
64 | + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
65 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}), | |
66 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
67 | + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
68 | + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
69 | + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
70 | + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
71 | + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
72 | + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | |
73 | + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}), | |
74 | + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
75 | + }, | |
76 | + u'contenttypes.contenttype': { | |
77 | + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
78 | + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
79 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
80 | + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
81 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | |
82 | + }, | |
83 | + u'dictionary.baseformlabel': { | |
84 | + 'Meta': {'ordering': "['index']", 'unique_together': "(['symbol', 'lexical_class'],)", 'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, | |
85 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
86 | + 'index': ('django.db.models.fields.IntegerField', [], {}), | |
87 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']"}), | |
88 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}) | |
89 | + }, | |
90 | + u'dictionary.borrowingsource': { | |
91 | + 'Meta': {'object_name': 'BorrowingSource'}, | |
92 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
93 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '32'}) | |
94 | + }, | |
95 | + u'dictionary.classification': { | |
96 | + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
97 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
98 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
99 | + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}) | |
100 | + }, | |
101 | + u'dictionary.classificationvalue': { | |
102 | + 'Meta': {'ordering': "['label']", 'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"}, | |
103 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}), | |
104 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
105 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
106 | + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
107 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}), | |
108 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"}) | |
109 | + }, | |
110 | + u'dictionary.crossreference': { | |
111 | + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"}, | |
112 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}), | |
113 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
114 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}), | |
115 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
116 | + }, | |
117 | + u'dictionary.crossreferencetype': { | |
118 | + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"}, | |
119 | + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}), | |
120 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}), | |
121 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
122 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}), | |
123 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}), | |
124 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"}) | |
125 | + }, | |
126 | + u'dictionary.ending': { | |
127 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
128 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
129 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
130 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}), | |
131 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}), | |
132 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
133 | + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
134 | + }, | |
135 | + u'dictionary.exportcell': { | |
136 | + 'Meta': {'object_name': 'ExportCell'}, | |
137 | + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}), | |
138 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']"}), | |
139 | + 'genders': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Gender']", 'symmetrical': 'False'}), | |
140 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
141 | + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}), | |
142 | + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
143 | + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
144 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'export_cells'", 'to': u"orm['dictionary.TableTemplate']"}), | |
145 | + 'tag_template': ('django.db.models.fields.TextField', [], {}) | |
146 | + }, | |
147 | + u'dictionary.gender': { | |
148 | + 'Meta': {'object_name': 'Gender'}, | |
149 | + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']"}), | |
150 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
151 | + 'symbol': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '4'}) | |
152 | + }, | |
153 | + u'dictionary.history': { | |
154 | + 'Meta': {'object_name': 'History', 'db_table': "'history'"}, | |
155 | + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}), | |
156 | + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}), | |
157 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
158 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
159 | + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}), | |
160 | + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}), | |
161 | + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}), | |
162 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
163 | + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
164 | + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}), | |
165 | + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}), | |
166 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}), | |
167 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'", 'db_index': 'True'}), | |
168 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"}) | |
169 | + }, | |
170 | + u'dictionary.homonymnumber': { | |
171 | + 'Meta': {'unique_together': "(['lexeme', 'variant'],)", 'object_name': 'HomonymNumber'}, | |
172 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
173 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}), | |
174 | + 'number': ('django.db.models.fields.IntegerField', [], {}), | |
175 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']"}) | |
176 | + }, | |
177 | + u'dictionary.inflectioncharacteristic': { | |
178 | + 'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
179 | + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
180 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
181 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
182 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}) | |
183 | + }, | |
184 | + u'dictionary.inputform': { | |
185 | + 'Meta': {'object_name': 'InputForm'}, | |
186 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
187 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
188 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"}) | |
189 | + }, | |
190 | + u'dictionary.inputlexeme': { | |
191 | + 'Meta': {'object_name': 'InputLexeme'}, | |
192 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
193 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
194 | + }, | |
195 | + u'dictionary.lexeme': { | |
196 | + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, | |
197 | + 'borrowing_source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BorrowingSource']", 'null': 'True', 'blank': 'True'}), | |
198 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
199 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
200 | + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
201 | + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
202 | + 'extended_note': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | |
203 | + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
204 | + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}), | |
205 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
206 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}), | |
207 | + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}), | |
208 | + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}), | |
209 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
210 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
211 | + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}), | |
212 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
213 | + 'qualifiers_cache': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'all_lexemes'", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeFormQualifier']", 'to': u"orm['dictionary.Qualifier']"}), | |
214 | + 'qualifiers_dor': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | |
215 | + 'qualifiers_scope': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | |
216 | + 'qualifiers_style': ('django.db.models.fields.TextField', [], {'blank': 'True'}), | |
217 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
218 | + 'source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
219 | + 'source_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), | |
220 | + 'specialist': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
221 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}), | |
222 | + 'valence': ('django.db.models.fields.TextField', [], {'blank': 'True'}) | |
223 | + }, | |
224 | + u'dictionary.lexemeassociation': { | |
225 | + 'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)", 'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
226 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
227 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
228 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
229 | + }, | |
230 | + u'dictionary.lexemeattribute': { | |
231 | + 'Meta': {'object_name': 'LexemeAttribute'}, | |
232 | + 'closed': ('django.db.models.fields.BooleanField', [], {}), | |
233 | + 'genders': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Gender']", 'symmetrical': 'False', 'blank': 'True'}), | |
234 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
235 | + 'multiple': ('django.db.models.fields.BooleanField', [], {}), | |
236 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32'}), | |
237 | + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}), | |
238 | + 'required': ('django.db.models.fields.BooleanField', [], {}), | |
239 | + 'takes_gender': ('django.db.models.fields.BooleanField', [], {}) | |
240 | + }, | |
241 | + u'dictionary.lexemeattributevalue': { | |
242 | + 'Meta': {'ordering': "['value']", 'object_name': 'LexemeAttributeValue'}, | |
243 | + 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'to': u"orm['dictionary.LexemeAttribute']"}), | |
244 | + 'display_value': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}), | |
245 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
246 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}), | |
247 | + 'value': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}) | |
248 | + }, | |
249 | + u'dictionary.lexemeav': { | |
250 | + 'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)", 'object_name': 'LexemeAV'}, | |
251 | + 'attribute_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexemeAttributeValue']"}), | |
252 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
253 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}) | |
254 | + }, | |
255 | + u'dictionary.lexemecv': { | |
256 | + 'Meta': {'unique_together': "(['lexeme', 'classification_value'],)", 'object_name': 'LexemeCV'}, | |
257 | + 'classification_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.ClassificationValue']"}), | |
258 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
259 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}) | |
260 | + }, | |
261 | + u'dictionary.lexemeform': { | |
262 | + 'Meta': {'object_name': 'LexemeForm'}, | |
263 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
264 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
265 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}) | |
266 | + }, | |
267 | + u'dictionary.lexemeformqualifier': { | |
268 | + 'Meta': {'object_name': 'LexemeFormQualifier'}, | |
269 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
270 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}), | |
271 | + 'qualifier': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Qualifier']"}) | |
272 | + }, | |
273 | + u'dictionary.lexemeinflectionpattern': { | |
274 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
275 | + 'gender': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Gender']", 'null': 'True', 'blank': 'True'}), | |
276 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
277 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
278 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
279 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
280 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
281 | + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
282 | + }, | |
283 | + u'dictionary.lexicalclass': { | |
284 | + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, | |
285 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
286 | + }, | |
287 | + u'dictionary.paradygmatywsjp': { | |
288 | + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
289 | + 'charfl': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
290 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
291 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
292 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
293 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
294 | + 'kskl': ('django.db.models.fields.IntegerField', [], {}), | |
295 | + 'morf': ('django.db.models.fields.TextField', [], {}), | |
296 | + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
297 | + 'pos': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
298 | + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
299 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
300 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
301 | + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
302 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
303 | + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
304 | + }, | |
305 | + u'dictionary.partofspeech': { | |
306 | + 'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
307 | + 'color_scheme': ('django.db.models.fields.IntegerField', [], {}), | |
308 | + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_column': "'nazwa'"}), | |
309 | + 'index': ('django.db.models.fields.IntegerField', [], {}), | |
310 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
311 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
312 | + }, | |
313 | + u'dictionary.pattern': { | |
314 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
315 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
316 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
317 | + 'deleted': ('django.db.models.fields.BooleanField', [], {}), | |
318 | + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'", 'blank': 'True'}), | |
319 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
320 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
321 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
322 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
323 | + }, | |
324 | + u'dictionary.patterntype': { | |
325 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PatternType', 'db_table': "'typywzorow'"}, | |
326 | + 'base_form_labels': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.BaseFormLabel']", 'symmetrical': 'False'}), | |
327 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
328 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
329 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}) | |
330 | + }, | |
331 | + u'dictionary.qualifier': { | |
332 | + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
333 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
334 | + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
335 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
336 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
337 | + 'type': ('django.db.models.fields.CharField', [], {'max_length': '4'}), | |
338 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}) | |
339 | + }, | |
340 | + u'dictionary.qualifierexclusionclass': { | |
341 | + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
342 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
343 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
344 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
345 | + }, | |
346 | + u'dictionary.savedexportdata': { | |
347 | + 'Meta': {'object_name': 'SavedExportData'}, | |
348 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
349 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
350 | + 'serialized_data': ('django.db.models.fields.TextField', [], {}) | |
351 | + }, | |
352 | + u'dictionary.savedfilter': { | |
353 | + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
354 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
355 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
356 | + 'serialized_filter': ('django.db.models.fields.TextField', [], {}), | |
357 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}) | |
358 | + }, | |
359 | + u'dictionary.tablecell': { | |
360 | + 'Meta': {'object_name': 'TableCell'}, | |
361 | + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}), | |
362 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']"}), | |
363 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
364 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
365 | + 'genders': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Gender']", 'symmetrical': 'False'}), | |
366 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
367 | + 'index': ('django.db.models.fields.IntegerField', [], {}), | |
368 | + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}), | |
369 | + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
370 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
371 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
372 | + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
373 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'table_cells'", 'to': u"orm['dictionary.TableTemplate']"}) | |
374 | + }, | |
375 | + u'dictionary.tableheader': { | |
376 | + 'Meta': {'object_name': 'TableHeader'}, | |
377 | + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}), | |
378 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
379 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
380 | + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}), | |
381 | + 'genders': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Gender']", 'symmetrical': 'False'}), | |
382 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
383 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
384 | + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}), | |
385 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
386 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
387 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'headers'", 'to': u"orm['dictionary.TableTemplate']"}) | |
388 | + }, | |
389 | + u'dictionary.tabletemplate': { | |
390 | + 'Meta': {'object_name': 'TableTemplate'}, | |
391 | + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}), | |
392 | + 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttribute']", 'symmetrical': 'False'}), | |
393 | + 'cell_attributes': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'templates'", 'symmetrical': 'False', 'to': u"orm['dictionary.LexemeAttribute']"}), | |
394 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
395 | + 'name': ('django.db.models.fields.TextField', [], {}), | |
396 | + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}), | |
397 | + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}), | |
398 | + 'takes_gender': ('django.db.models.fields.BooleanField', [], {}), | |
399 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']"}) | |
400 | + }, | |
401 | + u'dictionary.variant': { | |
402 | + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, | |
403 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}), | |
404 | + 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'}) | |
405 | + }, | |
406 | + u'dictionary.vocabulary': { | |
407 | + 'Meta': {'ordering': "['id']", 'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, | |
408 | + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}), | |
409 | + 'description': ('django.db.models.fields.TextField', [], {}), | |
410 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
411 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}), | |
412 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}), | |
413 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
414 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}) | |
415 | + } | |
416 | + } | |
417 | + | |
418 | + complete_apps = ['dictionary'] | |
419 | + symmetrical = True | |
... | ... |