Commit 16eb21ccc521df8fd598d6d08f3200628028a6af
1 parent
2043a7b2
zaległe migracje
Showing
3 changed files
with
601 additions
and
1 deletions
dictionary/management/commands/import_data.py
dictionary/migrations/0005_auto__add_field_tableheader_css_class.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +import datetime | |
3 | +from south.db import db | |
4 | +from south.v2 import SchemaMigration | |
5 | +from django.db import models | |
6 | + | |
7 | + | |
8 | +class Migration(SchemaMigration): | |
9 | + | |
10 | + def forwards(self, orm): | |
11 | + # Adding field 'TableHeader.css_class' | |
12 | + db.add_column('naglowki_tabel', 'css_class', | |
13 | + self.gf('django.db.models.fields.BooleanField')(default=False, db_column='styl'), | |
14 | + keep_default=False) | |
15 | + | |
16 | + | |
17 | + def backwards(self, orm): | |
18 | + # Deleting field 'TableHeader.css_class' | |
19 | + db.delete_column('naglowki_tabel', 'styl') | |
20 | + | |
21 | + | |
22 | + models = { | |
23 | + u'auth.group': { | |
24 | + 'Meta': {'object_name': 'Group'}, | |
25 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
26 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), | |
27 | + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
28 | + }, | |
29 | + u'auth.permission': { | |
30 | + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, | |
31 | + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
32 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), | |
33 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
34 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
35 | + }, | |
36 | + u'auth.user': { | |
37 | + 'Meta': {'object_name': 'User'}, | |
38 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
39 | + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), | |
40 | + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
41 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | |
42 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
43 | + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
44 | + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
45 | + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
46 | + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
47 | + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
48 | + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | |
49 | + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | |
50 | + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
51 | + }, | |
52 | + u'contenttypes.contenttype': { | |
53 | + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
54 | + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
55 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
56 | + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
57 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | |
58 | + }, | |
59 | + u'dictionary.baseformlabel': { | |
60 | + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, | |
61 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
62 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
63 | + }, | |
64 | + u'dictionary.cell': { | |
65 | + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"}, | |
66 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
67 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
68 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}), | |
69 | + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
70 | + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
71 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
72 | + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'}) | |
73 | + }, | |
74 | + u'dictionary.classification': { | |
75 | + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
76 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
77 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
78 | + }, | |
79 | + u'dictionary.classificationvalue': { | |
80 | + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"}, | |
81 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}), | |
82 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
83 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
84 | + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
85 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'blank': 'True'}), | |
86 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"}) | |
87 | + }, | |
88 | + u'dictionary.crossreference': { | |
89 | + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"}, | |
90 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}), | |
91 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
92 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}), | |
93 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
94 | + }, | |
95 | + u'dictionary.crossreferencetype': { | |
96 | + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"}, | |
97 | + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}), | |
98 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}), | |
99 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
100 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}), | |
101 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}), | |
102 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"}) | |
103 | + }, | |
104 | + u'dictionary.ending': { | |
105 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
106 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
107 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
108 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}), | |
109 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}), | |
110 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
111 | + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
112 | + }, | |
113 | + u'dictionary.history': { | |
114 | + 'Meta': {'object_name': 'History', 'db_table': "'history'"}, | |
115 | + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}), | |
116 | + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}), | |
117 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
118 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
119 | + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}), | |
120 | + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}), | |
121 | + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}), | |
122 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
123 | + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
124 | + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}), | |
125 | + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}), | |
126 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}), | |
127 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}), | |
128 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"}) | |
129 | + }, | |
130 | + u'dictionary.inflectioncharacteristic': { | |
131 | + 'Meta': {'unique_together': "(['entry', 'part_of_speech'],)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
132 | + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
133 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
134 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
135 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
136 | + }, | |
137 | + u'dictionary.inputform': { | |
138 | + 'Meta': {'object_name': 'InputForm'}, | |
139 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
140 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
141 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"}) | |
142 | + }, | |
143 | + u'dictionary.inputlexeme': { | |
144 | + 'Meta': {'object_name': 'InputLexeme'}, | |
145 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
146 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
147 | + }, | |
148 | + u'dictionary.lexeme': { | |
149 | + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, | |
150 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
151 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
152 | + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
153 | + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
154 | + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
155 | + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
156 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
157 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}), | |
158 | + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}), | |
159 | + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}), | |
160 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
161 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
162 | + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}), | |
163 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
164 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
165 | + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
166 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}) | |
167 | + }, | |
168 | + u'dictionary.lexemeassociation': { | |
169 | + 'Meta': {'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
170 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
171 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
172 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
173 | + }, | |
174 | + u'dictionary.lexemeform': { | |
175 | + 'Meta': {'object_name': 'LexemeForm'}, | |
176 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
177 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
178 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"}) | |
179 | + }, | |
180 | + u'dictionary.lexemeinflectionpattern': { | |
181 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
182 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
183 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
184 | + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
185 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
186 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
187 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
188 | + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
189 | + }, | |
190 | + u'dictionary.lexicalclass': { | |
191 | + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, | |
192 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
193 | + }, | |
194 | + u'dictionary.paradygmatywsjp': { | |
195 | + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
196 | + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
197 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
198 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
199 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
200 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
201 | + 'kskl': ('django.db.models.fields.IntegerField', [], {}), | |
202 | + 'morf': ('django.db.models.fields.TextField', [], {}), | |
203 | + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
204 | + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
205 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
206 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
207 | + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
208 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
209 | + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
210 | + }, | |
211 | + u'dictionary.partofspeech': { | |
212 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
213 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
214 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
215 | + }, | |
216 | + u'dictionary.pattern': { | |
217 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
218 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
219 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
220 | + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}), | |
221 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
222 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
223 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
224 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
225 | + }, | |
226 | + u'dictionary.patterntype': { | |
227 | + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"}, | |
228 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
229 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
230 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
231 | + }, | |
232 | + u'dictionary.qualifier': { | |
233 | + 'Meta': {'ordering': "['label']", 'unique_together': "(['label', 'vocabulary'],)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
234 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
235 | + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
236 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
237 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
238 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}) | |
239 | + }, | |
240 | + u'dictionary.qualifierexclusionclass': { | |
241 | + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
242 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
243 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
244 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
245 | + }, | |
246 | + u'dictionary.savedexportdata': { | |
247 | + 'Meta': {'object_name': 'SavedExportData'}, | |
248 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
249 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
250 | + 'serialized_data': ('django.db.models.fields.TextField', [], {}) | |
251 | + }, | |
252 | + u'dictionary.savedfilter': { | |
253 | + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
254 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
255 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
256 | + 'serialized_filter': ('django.db.models.fields.TextField', [], {}), | |
257 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}) | |
258 | + }, | |
259 | + u'dictionary.tablecell': { | |
260 | + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"}, | |
261 | + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}), | |
262 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
263 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
264 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
265 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
266 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}) | |
267 | + }, | |
268 | + u'dictionary.tableheader': { | |
269 | + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"}, | |
270 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
271 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
272 | + 'css_class': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'styl'"}), | |
273 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
274 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
275 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
276 | + 'row_header': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'wierszowy'"}), | |
277 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
278 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
279 | + }, | |
280 | + u'dictionary.tabletemplate': { | |
281 | + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"}, | |
282 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
283 | + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
284 | + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
285 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
286 | + }, | |
287 | + u'dictionary.variant': { | |
288 | + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, | |
289 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}) | |
290 | + }, | |
291 | + u'dictionary.vocabulary': { | |
292 | + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, | |
293 | + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}), | |
294 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
295 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}), | |
296 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}), | |
297 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
298 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}) | |
299 | + } | |
300 | + } | |
301 | + | |
302 | + complete_apps = ['dictionary'] | |
0 | 303 | \ No newline at end of file |
... | ... |
dictionary/migrations/0006_header_class.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +import datetime | |
3 | +from south.db import db | |
4 | +from south.v2 import DataMigration | |
5 | +from django.db import models | |
6 | + | |
7 | +class Migration(DataMigration): | |
8 | + | |
9 | + def forwards(self, orm): | |
10 | + for header in orm.TableHeader.objects.all(): | |
11 | + header.css_class = 'h' if header.row_header else 'c' | |
12 | + | |
13 | + def backwards(self, orm): | |
14 | + for header in orm.TableHeader.objects.all(): | |
15 | + header.row_header = header.css_class == 'h' | |
16 | + | |
17 | + models = { | |
18 | + u'auth.group': { | |
19 | + 'Meta': {'object_name': 'Group'}, | |
20 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
21 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), | |
22 | + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
23 | + }, | |
24 | + u'auth.permission': { | |
25 | + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, | |
26 | + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
27 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), | |
28 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
29 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
30 | + }, | |
31 | + u'auth.user': { | |
32 | + 'Meta': {'object_name': 'User'}, | |
33 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
34 | + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), | |
35 | + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
36 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | |
37 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
38 | + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
39 | + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
40 | + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
41 | + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
42 | + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
43 | + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | |
44 | + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | |
45 | + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
46 | + }, | |
47 | + u'contenttypes.contenttype': { | |
48 | + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
49 | + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
50 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
51 | + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
52 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | |
53 | + }, | |
54 | + u'dictionary.baseformlabel': { | |
55 | + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, | |
56 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
57 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
58 | + }, | |
59 | + u'dictionary.cell': { | |
60 | + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"}, | |
61 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
62 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
63 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}), | |
64 | + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
65 | + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
66 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
67 | + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'}) | |
68 | + }, | |
69 | + u'dictionary.classification': { | |
70 | + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
71 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
72 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
73 | + }, | |
74 | + u'dictionary.classificationvalue': { | |
75 | + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"}, | |
76 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}), | |
77 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
78 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
79 | + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
80 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'blank': 'True'}), | |
81 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"}) | |
82 | + }, | |
83 | + u'dictionary.crossreference': { | |
84 | + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"}, | |
85 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}), | |
86 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
87 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}), | |
88 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
89 | + }, | |
90 | + u'dictionary.crossreferencetype': { | |
91 | + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"}, | |
92 | + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}), | |
93 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}), | |
94 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
95 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}), | |
96 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}), | |
97 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"}) | |
98 | + }, | |
99 | + u'dictionary.ending': { | |
100 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
101 | + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
102 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
103 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}), | |
104 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}), | |
105 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
106 | + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
107 | + }, | |
108 | + u'dictionary.history': { | |
109 | + 'Meta': {'object_name': 'History', 'db_table': "'history'"}, | |
110 | + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}), | |
111 | + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}), | |
112 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
113 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
114 | + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}), | |
115 | + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}), | |
116 | + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}), | |
117 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
118 | + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
119 | + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}), | |
120 | + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}), | |
121 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}), | |
122 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}), | |
123 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"}) | |
124 | + }, | |
125 | + u'dictionary.inflectioncharacteristic': { | |
126 | + 'Meta': {'unique_together': "(('entry', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
127 | + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
128 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
129 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
130 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
131 | + }, | |
132 | + u'dictionary.inputform': { | |
133 | + 'Meta': {'object_name': 'InputForm'}, | |
134 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
135 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
136 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"}) | |
137 | + }, | |
138 | + u'dictionary.inputlexeme': { | |
139 | + 'Meta': {'object_name': 'InputLexeme'}, | |
140 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
141 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
142 | + }, | |
143 | + u'dictionary.lexeme': { | |
144 | + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, | |
145 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
146 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
147 | + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
148 | + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
149 | + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
150 | + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}), | |
151 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
152 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}), | |
153 | + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}), | |
154 | + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}), | |
155 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
156 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
157 | + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}), | |
158 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
159 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
160 | + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
161 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}) | |
162 | + }, | |
163 | + u'dictionary.lexemeassociation': { | |
164 | + 'Meta': {'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
165 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
166 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
167 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
168 | + }, | |
169 | + u'dictionary.lexemeform': { | |
170 | + 'Meta': {'object_name': 'LexemeForm'}, | |
171 | + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
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 | + }, | |
175 | + u'dictionary.lexemeinflectionpattern': { | |
176 | + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
177 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
178 | + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
179 | + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
180 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
181 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
182 | + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
183 | + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
184 | + }, | |
185 | + u'dictionary.lexicalclass': { | |
186 | + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, | |
187 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
188 | + }, | |
189 | + u'dictionary.paradygmatywsjp': { | |
190 | + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
191 | + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
192 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
193 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
194 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
195 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
196 | + 'kskl': ('django.db.models.fields.IntegerField', [], {}), | |
197 | + 'morf': ('django.db.models.fields.TextField', [], {}), | |
198 | + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
199 | + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
200 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
201 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
202 | + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
203 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
204 | + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
205 | + }, | |
206 | + u'dictionary.partofspeech': { | |
207 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
208 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
209 | + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
210 | + }, | |
211 | + u'dictionary.pattern': { | |
212 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
213 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
214 | + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
215 | + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}), | |
216 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
217 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
218 | + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
219 | + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
220 | + }, | |
221 | + u'dictionary.patterntype': { | |
222 | + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"}, | |
223 | + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
224 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
225 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
226 | + }, | |
227 | + u'dictionary.qualifier': { | |
228 | + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
229 | + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
230 | + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
231 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
232 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
233 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}) | |
234 | + }, | |
235 | + u'dictionary.qualifierexclusionclass': { | |
236 | + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
237 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
238 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
239 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
240 | + }, | |
241 | + u'dictionary.savedexportdata': { | |
242 | + 'Meta': {'object_name': 'SavedExportData'}, | |
243 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
244 | + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
245 | + 'serialized_data': ('django.db.models.fields.TextField', [], {}) | |
246 | + }, | |
247 | + u'dictionary.savedfilter': { | |
248 | + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
249 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
250 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
251 | + 'serialized_filter': ('django.db.models.fields.TextField', [], {}), | |
252 | + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}) | |
253 | + }, | |
254 | + u'dictionary.tablecell': { | |
255 | + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"}, | |
256 | + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}), | |
257 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
258 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
259 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
260 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
261 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}) | |
262 | + }, | |
263 | + u'dictionary.tableheader': { | |
264 | + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"}, | |
265 | + 'col': ('django.db.models.fields.IntegerField', [], {}), | |
266 | + 'colspan': ('django.db.models.fields.IntegerField', [], {}), | |
267 | + 'css_class': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'styl'"}), | |
268 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
269 | + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
270 | + 'row': ('django.db.models.fields.IntegerField', [], {}), | |
271 | + 'row_header': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'wierszowy'"}), | |
272 | + 'rowspan': ('django.db.models.fields.IntegerField', [], {}), | |
273 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
274 | + }, | |
275 | + u'dictionary.tabletemplate': { | |
276 | + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"}, | |
277 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
278 | + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
279 | + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
280 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
281 | + }, | |
282 | + u'dictionary.variant': { | |
283 | + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, | |
284 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}) | |
285 | + }, | |
286 | + u'dictionary.vocabulary': { | |
287 | + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, | |
288 | + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}), | |
289 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
290 | + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}), | |
291 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}), | |
292 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}), | |
293 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}) | |
294 | + } | |
295 | + } | |
296 | + | |
297 | + complete_apps = ['dictionary'] | |
298 | + symmetrical = True | |
... | ... |