Blame view

dictionary/migrations/0035_display_values.py 33 KB
janek37 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models

ATTRS = {
    u'zwrotność': {
        u'—': u'',
        u'się': u'się',
        u'(się)': u'(się)',
        u'sobie': u'sobie',
        u'(sobie)': u'(sobie)',
        u'się/sobie': u'się/sobie',
    },
    u'przechodniość': {
        'iT': u'nieprzechodni',
        'qT': u'quasi-przechodni',
        'T': u'przechodni',
    },
    u'aspekt': {
        'dk': u'dk',
        'ndk': u'ndk',
        'ndk/dk': u'ndk/dk',
        'dk/ndk': u'dk/ndk',
        'ndk/(dk)': u'ndk/(dk)',
        'dk/(ndk)': u'dk/(ndk)',
    },
    u'właściwy': {
        'Q': u'niewłaściwy',
        '(Q)': u'właściwy/niewłaściwy',
        '': u'właściwy',
    },
    u'depr': {
        'n': u'',
        'd': u'',
        'nd': u'',
    },
}
janek37 authored
42
class Migration(DataMigration):
janek37 authored
43
44
45
46
47
48
49
50
51
52
53
    def forwards(self, orm):
        for av in orm.LexemeAttributeValue.objects.all():
            av.display_value = ATTRS[av.attribute.name][av.value]
            av.save()

    def backwards(self, orm):
        pass

    models = {
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
janek37 authored
54
55
56
57
58
59
60
61
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '80'}),
            'permissions': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['auth.Permission']", 'symmetrical': 'False',
            'blank': 'True'})
janek37 authored
62
63
        },
        u'auth.permission': {
janek37 authored
64
65
66
67
68
69
70
71
72
73
74
75
            'Meta': {
            'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')",
            'unique_together': "((u'content_type', u'codename'),)",
            'object_name': 'Permission'},
            'codename': (
            'django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['contenttypes.ContentType']"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': (
            'django.db.models.fields.CharField', [], {'max_length': '50'})
janek37 authored
76
77
78
        },
        u'auth.user': {
            'Meta': {'object_name': 'User'},
janek37 authored
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
            'date_joined': ('django.db.models.fields.DateTimeField', [],
            {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [],
            {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [],
            {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['auth.Group']", 'symmetrical': 'False',
            'blank': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': (
            'django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [],
            {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [],
            {'max_length': '30', 'blank': 'True'}),
            'password': (
            'django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['auth.Permission']", 'symmetrical': 'False',
            'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '30'})
janek37 authored
108
109
        },
        u'contenttypes.contenttype': {
janek37 authored
110
111
112
113
114
115
116
117
118
119
120
            'Meta': {'ordering': "('name',)",
            'unique_together': "(('app_label', 'model'),)",
            'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': (
            'django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': (
            'django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': (
            'django.db.models.fields.CharField', [], {'max_length': '100'})
janek37 authored
121
122
123
        },
        u'dictionary.baseformlabel': {
            'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"},
janek37 authored
124
125
126
127
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'})
janek37 authored
128
129
        },
        u'dictionary.cell': {
janek37 authored
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
            'Meta': {'ordering': "['index']", 'object_name': 'Cell',
            'db_table': "'klatki'"},
            'base_form_label': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.BaseFormLabel']",
            'db_column': "'efobaz'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'kind'"}),
            'prefix': ('django.db.models.fields.CharField', [],
            {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}),
            'suffix': ('django.db.models.fields.CharField', [],
            {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}),
            'table_template': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}),
            'tag': ('django.db.models.fields.TextField', [],
            {'db_column': "'tag'", 'blank': 'True'})
janek37 authored
148
149
        },
        u'dictionary.classification': {
janek37 authored
150
151
152
153
154
155
156
157
158
            'Meta': {'object_name': 'Classification',
            'db_table': "'klasyfikacje'"},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
            'parts_of_speech': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'})
janek37 authored
159
160
        },
        u'dictionary.classificationvalue': {
janek37 authored
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
            'Meta': {'object_name': 'ClassificationValue',
            'db_table': "'wartosci_klasyfikacji'"},
            'classification': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'values'", 'db_column': "'klas_id'",
            'to': u"orm['dictionary.Classification']"}),
            'deleted': ('django.db.models.fields.BooleanField', [],
            {'default': 'False', 'db_column': "'usunieta'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'label': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
            'lexemes': ('django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False',
            'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}),
            'parent_node': ('django.db.models.fields.related.ForeignKey', [],
            {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True',
            'db_column': "'rodzic'",
            'to': u"orm['dictionary.ClassificationValue']"})
janek37 authored
179
180
        },
        u'dictionary.crossreference': {
janek37 authored
181
182
183
184
185
186
187
188
189
190
191
192
193
            'Meta': {'object_name': 'CrossReference',
            'db_table': "'odsylacze'"},
            'from_lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'refs_to'", 'db_column': "'l_id_od'",
            'to': u"orm['dictionary.Lexeme']"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'to_lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'refs_from'", 'db_column': "'l_id_do'",
            'to': u"orm['dictionary.Lexeme']"}),
            'type': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.CrossReferenceType']",
            'db_column': "'typods_id'"})
janek37 authored
194
195
        },
        u'dictionary.crossreferencetype': {
janek37 authored
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
            'Meta': {'object_name': 'CrossReferenceType',
            'db_table': "'typyodsylaczy'"},
            'desc': ('django.db.models.fields.CharField', [],
            {'max_length': '40', 'db_column': "'naglowek'"}),
            'from_pos': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'crtype_to'", 'db_column': "'pos1'",
            'to': u"orm['dictionary.PartOfSpeech']"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'kolejnosc'"}),
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '10', 'db_column': "'typods'"}),
            'to_pos': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'crtype_from'", 'db_column': "'pos2'",
            'to': u"orm['dictionary.PartOfSpeech']"})
janek37 authored
212
213
        },
        u'dictionary.ending': {
janek37 authored
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
            'Meta': {'ordering': "['index']",
            'unique_together': "(('pattern', 'base_form_label', 'index'),)",
            'object_name': 'Ending', 'db_table': "'zakonczenia'"},
            'base_form_label': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.BaseFormLabel']",
            'db_column': "'efobaz'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'zind'"}),
            'pattern': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'endings'", 'db_column': "'w_id'",
            'to': u"orm['dictionary.Pattern']"}),
            'qualifiers': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False',
            'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}),
            'string': ('django.db.models.fields.CharField', [],
            {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'})
janek37 authored
234
235
236
        },
        u'dictionary.history': {
            'Meta': {'object_name': 'History', 'db_table': "'history'"},
janek37 authored
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
            'column_name': ('django.db.models.fields.CharField', [],
            {'max_length': '120', 'db_column': "'column_name_'",
            'blank': 'True'}),
            'column_ord': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'ordinal_position_of_column_'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']", 'null': 'True',
            'db_column': "'lexeme_id_'", 'blank': 'True'}),
            'new_value': ('django.db.models.fields.TextField', [],
            {'db_column': "'new_value_'", 'blank': 'True'}),
            'old_value': ('django.db.models.fields.TextField', [],
            {'db_column': "'old_value_'", 'blank': 'True'}),
            'operation': ('django.db.models.fields.CharField', [],
            {'max_length': '120', 'db_column': "'operation_'"}),
            'pattern': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Pattern']", 'null': 'True',
            'db_column': "'pattern_id_'", 'blank': 'True'}),
            'row_id': (
            'django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}),
            'table_name': ('django.db.models.fields.CharField', [],
            {'max_length': '120', 'db_column': "'table_name_'"}),
            'table_oid': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'table_oid_'"}),
            'timestamp': ('django.db.models.fields.DateTimeField', [],
            {'db_column': "'timestamp_'"}),
            'transaction_began': ('django.db.models.fields.DateTimeField', [],
            {'db_column': "'transaction_began_'"}),
            'user': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['auth.User']", 'db_column': "'user_id_'"})
janek37 authored
268
269
        },
        u'dictionary.inflectioncharacteristic': {
janek37 authored
270
271
272
273
274
275
276
277
278
279
280
281
            'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)",
            'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"},
            'basic_form_label': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.BaseFormLabel']",
            'db_column': "'efobaz'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'part_of_speech': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'})
janek37 authored
282
283
284
        },
        u'dictionary.inputform': {
            'Meta': {'object_name': 'InputForm'},
janek37 authored
285
286
287
288
289
290
            'form': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_index': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'input_lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.InputLexeme']"})
janek37 authored
291
292
293
        },
        u'dictionary.inputlexeme': {
            'Meta': {'object_name': 'InputLexeme'},
janek37 authored
294
295
296
297
            'entry': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_index': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'})
janek37 authored
298
299
300
        },
        u'dictionary.lexeme': {
            'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"},
janek37 authored
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
            'comment': ('django.db.models.fields.TextField', [],
            {'db_column': "'komentarz'", 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [],
            {'default': 'False', 'db_column': "'usuniety'"}),
            'entry': ('django.db.models.fields.CharField', [],
            {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'",
            'blank': 'True'}),
            'entry_suffix': ('django.db.models.fields.CharField', [],
            {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}),
            'gloss': ('django.db.models.fields.TextField', [],
            {'db_column': "'glosa'", 'blank': 'True'}),
            'homonym_number': ('django.db.models.fields.IntegerField', [],
            {'default': '1', 'db_column': "'hom'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_modified': ('django.db.models.fields.DateTimeField', [],
            {'auto_now': 'True', 'db_column': "'data_modyfikacji'",
            'blank': 'True'}),
            'note': ('django.db.models.fields.TextField', [],
            {'db_column': "'nota'", 'blank': 'True'}),
            'owner_vocabulary': (
            'django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'owned_lexemes'", 'db_column': "'slownik'",
            'to': u"orm['dictionary.Vocabulary']"}),
            'part_of_speech': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
            'patterns': ('django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Pattern']",
            'through': u"orm['dictionary.LexemeInflectionPattern']",
            'symmetrical': 'False'}),
            'pronunciation': ('django.db.models.fields.TextField', [],
            {'db_column': "'wymowa'", 'blank': 'True'}),
            'qualifiers': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False',
            'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}),
            'responsible': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['auth.User']", 'null': 'True',
            'db_column': "'odpowiedzialny'", 'blank': 'True'}),
            'source': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}),
            'status': ('django.db.models.fields.CharField', [],
            {'max_length': '8', 'db_column': "'status'"}),
            'valence': (
            'django.db.models.fields.TextField', [], {'blank': 'True'})
janek37 authored
346
347
        },
        u'dictionary.lexemeassociation': {
janek37 authored
348
349
350
351
352
353
354
355
356
            'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)",
            'object_name': 'LexemeAssociation',
            'db_table': "'leksemy_w_slownikach'"},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
            'vocabulary': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
janek37 authored
357
358
359
        },
        u'dictionary.lexemeattribute': {
            'Meta': {'object_name': 'LexemeAttribute'},
janek37 authored
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
            'closed': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'inflection_characteristics': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.InflectionCharacteristic']",
            'symmetrical': 'False', 'blank': 'True'}),
            'multiple': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'name': (
            'django.db.models.fields.CharField', [], {'max_length': '32'}),
            'parts_of_speech': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
            'required': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'takes_ic': (
            'django.db.models.fields.BooleanField', [], {'default': 'False'})
janek37 authored
379
380
        },
        u'dictionary.lexemeattributevalue': {
janek37 authored
381
382
383
384
385
386
387
388
389
390
391
392
393
394
            'Meta': {'ordering': "['value']",
            'object_name': 'LexemeAttributeValue'},
            'attribute': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'values'",
            'to': u"orm['dictionary.LexemeAttribute']"}),
            'display_value': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'blank': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexemes': ('django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False',
            'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}),
            'value': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'blank': 'True'})
janek37 authored
395
396
        },
        u'dictionary.lexemeav': {
janek37 authored
397
398
399
400
401
402
403
404
405
            'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)",
            'object_name': 'LexemeAV'},
            'attribute_value': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.LexemeAttributeValue']"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']"})
janek37 authored
406
407
        },
        u'dictionary.lexemecv': {
janek37 authored
408
409
410
411
412
413
414
415
416
            'Meta': {'unique_together': "(['lexeme', 'classification_value'],)",
            'object_name': 'LexemeCV'},
            'classification_value': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.ClassificationValue']"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']"})
janek37 authored
417
418
419
        },
        u'dictionary.lexemeform': {
            'Meta': {'object_name': 'LexemeForm'},
janek37 authored
420
421
422
423
424
425
            'form': ('django.db.models.fields.CharField', [],
            {'max_length': '128', 'db_index': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']"})
janek37 authored
426
427
        },
        u'dictionary.lexemeinflectionpattern': {
janek37 authored
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
            'Meta': {'ordering': "['index']",
            'unique_together': "(('lexeme', 'index'),)",
            'object_name': 'LexemeInflectionPattern',
            'db_table': "'odmieniasie'"},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [],
            {'db_column': "'oind'"}),
            'inflection_characteristic': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.InflectionCharacteristic']",
            'db_column': "'charfl'"}),
            'lexeme': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
            'pattern': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}),
            'qualifiers': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False',
            'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}),
            'root': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_column': "'rdzen'"})
janek37 authored
450
451
452
        },
        u'dictionary.lexicalclass': {
            'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"},
janek37 authored
453
454
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"})
janek37 authored
455
456
        },
        u'dictionary.paradygmatywsjp': {
janek37 authored
457
458
459
460
461
            'Meta': {'object_name': 'ParadygmatyWSJP',
            'db_table': "'paradygmatywsjp'"},
            'charfl': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.InflectionCharacteristic']",
            'db_column': "'charfl'"}),
janek37 authored
462
463
            'col': ('django.db.models.fields.IntegerField', [], {}),
            'colspan': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
464
465
466
467
468
            'efobaz': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.BaseFormLabel']",
            'db_column': "'efobaz'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
janek37 authored
469
470
            'kskl': ('django.db.models.fields.IntegerField', [], {}),
            'morf': ('django.db.models.fields.TextField', [], {}),
janek37 authored
471
472
473
474
            'podparad': ('django.db.models.fields.CharField', [],
            {'max_length': '4', 'blank': 'True'}),
            'pref': ('django.db.models.fields.CharField', [],
            {'max_length': '20', 'blank': 'True'}),
janek37 authored
475
476
            'row': ('django.db.models.fields.IntegerField', [], {}),
            'rowspan': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
477
478
479
480
481
482
            'suf': ('django.db.models.fields.CharField', [],
            {'max_length': '20', 'blank': 'True'}),
            'typr': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}),
            'wariant': (
            'django.db.models.fields.CharField', [], {'max_length': '4'})
janek37 authored
483
484
        },
        u'dictionary.partofspeech': {
janek37 authored
485
486
            'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech',
            'db_table': "'klasygramatyczne'"},
janek37 authored
487
            'color_scheme': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
488
489
            'full_name': ('django.db.models.fields.CharField', [],
            {'max_length': '128', 'db_column': "'nazwa'"}),
janek37 authored
490
            'index': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
491
492
493
494
            'lexical_class': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"})
janek37 authored
495
496
        },
        u'dictionary.pattern': {
janek37 authored
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
            'Meta': {'ordering': "['name']", 'object_name': 'Pattern',
            'db_table': "'wzory'"},
            'basic_form_ending': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}),
            'comment': ('django.db.models.fields.TextField', [],
            {'db_column': "'komentarz'", 'blank': 'True'}),
            'example': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_column': "'przyklad'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}),
            'status': (
            'django.db.models.fields.CharField', [], {'max_length': '8'}),
            'type': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"})
janek37 authored
513
514
515
        },
        u'dictionary.patterntype': {
            'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"},
janek37 authored
516
517
518
519
520
521
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'lexical_class': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
            'symbol': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'})
janek37 authored
522
523
        },
        u'dictionary.qualifier': {
janek37 authored
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
            'Meta': {'ordering': "['label']",
            'unique_together': "(('label', 'vocabulary'),)",
            'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"},
            'deleted': ('django.db.models.fields.BooleanField', [],
            {'default': 'False', 'db_column': "'usuniety'"}),
            'exclusion_class': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True',
            'db_column': "'klasa'", 'blank': 'True'}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'label': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_column': "'kwal'"}),
            'vocabulary': ('django.db.models.fields.related.ForeignKey', [],
            {'related_name': "'qualifiers'", 'db_column': "'slownik'",
            'to': u"orm['dictionary.Vocabulary']"})
janek37 authored
540
541
        },
        u'dictionary.qualifierexclusionclass': {
janek37 authored
542
543
544
545
546
547
548
549
            'Meta': {'object_name': 'QualifierExclusionClass',
            'db_table': "'klasy_wykluczania'"},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
            'vocabulary': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
janek37 authored
550
551
552
        },
        u'dictionary.savedexportdata': {
            'Meta': {'object_name': 'SavedExportData'},
janek37 authored
553
554
555
556
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
            {'unique': 'True', 'max_length': '64'}),
janek37 authored
557
558
559
            'serialized_data': ('django.db.models.fields.TextField', [], {})
        },
        u'dictionary.savedfilter': {
janek37 authored
560
561
562
563
564
565
            'Meta': {'unique_together': "(('name', 'user'),)",
            'object_name': 'SavedFilter'},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': (
            'django.db.models.fields.CharField', [], {'max_length': '64'}),
janek37 authored
566
            'serialized_filter': ('django.db.models.fields.TextField', [], {}),
janek37 authored
567
568
            'user': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['auth.User']"})
janek37 authored
569
570
571
        },
        u'dictionary.tablecell': {
            'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"},
janek37 authored
572
573
574
            'cell': ('django.db.models.fields.related.OneToOneField', [],
            {'to': u"orm['dictionary.Cell']", 'unique': 'True',
            'db_column': "'k_id'"}),
janek37 authored
575
576
            'col': ('django.db.models.fields.IntegerField', [], {}),
            'colspan': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
577
578
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
janek37 authored
579
580
581
582
            'row': ('django.db.models.fields.IntegerField', [], {}),
            'rowspan': ('django.db.models.fields.IntegerField', [], {})
        },
        u'dictionary.tableheader': {
janek37 authored
583
584
            'Meta': {'object_name': 'TableHeader',
            'db_table': "'naglowki_tabel'"},
janek37 authored
585
586
            'col': ('django.db.models.fields.IntegerField', [], {}),
            'colspan': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
587
588
589
590
591
592
            'css_class': ('django.db.models.fields.CharField', [],
            {'max_length': '8', 'db_column': "'styl'"}),
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'label': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
janek37 authored
593
594
            'row': ('django.db.models.fields.IntegerField', [], {}),
            'rowspan': ('django.db.models.fields.IntegerField', [], {}),
janek37 authored
595
596
            'table_template': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"})
janek37 authored
597
598
        },
        u'dictionary.tabletemplate': {
janek37 authored
599
600
601
602
603
604
605
606
607
608
609
610
            'Meta': {'object_name': 'TableTemplate',
            'db_table': "'szablony_tabel'"},
            u'id': (
            'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'inflection_characteristic': (
            'django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.InflectionCharacteristic']",
            'db_column': "'charfl'"}),
            'pattern_type': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}),
            'variant': ('django.db.models.fields.related.ForeignKey', [],
            {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"})
janek37 authored
611
612
613
        },
        u'dictionary.variant': {
            'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"},
janek37 authored
614
615
616
            'id': ('django.db.models.fields.CharField', [],
            {'max_length': '32', 'primary_key': 'True',
            'db_column': "'wariant'"})
janek37 authored
617
618
619
        },
        u'dictionary.vocabulary': {
            'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"},
janek37 authored
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
            'classifications': (
            'django.db.models.fields.related.ManyToManyField', [],
            {'symmetrical': 'False', 'related_name': "'vocabularies'",
            'blank': 'True', 'to': u"orm['dictionary.Classification']"}),
            'editors': ('django.db.models.fields.related.ManyToManyField', [],
            {'symmetrical': 'False', 'related_name': "'editable_vocabularies'",
            'blank': 'True', 'to': u"orm['auth.User']"}),
            'id': ('django.db.models.fields.CharField', [],
            {'max_length': '64', 'primary_key': 'True',
            'db_column': "'slownik'"}),
            'lexemes': ('django.db.models.fields.related.ManyToManyField', [],
            {'symmetrical': 'False', 'related_name': "'vocabularies'",
            'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']",
            'to': u"orm['dictionary.Lexeme']"}),
            'managers': ('django.db.models.fields.related.ManyToManyField', [],
            {'symmetrical': 'False', 'related_name': "'managed_vocabularies'",
            'blank': 'True', 'to': u"orm['auth.User']"}),
            'viewers': ('django.db.models.fields.related.ManyToManyField', [],
            {'symmetrical': 'False', 'related_name': "'visible_vocabularies'",
            'blank': 'True', 'to': u"orm['auth.User']"})
janek37 authored
640
641
642
643
644
        }
    }

    complete_apps = ['dictionary']
    symmetrical = True