Commit e79a9ad63b18678117b3f82cc311cf7588ee54e5

Authored by janek37
1 parent 360bce89

nowe pola w częściach mowy

dictionary/management/commands/import_data.py
... ... @@ -146,7 +146,11 @@ class ImportData(object):
146 146 for row in self.sqlite_cursor.execute('SELECT pos FROM klasygramatyczne'):
147 147 lc = lcs.get(row['pos'], OTHER)
148 148 yield PartOfSpeech(
149   - symbol=row['pos'], lexical_class = LexicalClass.objects.get(symbol=lc))
  149 + symbol=row['pos'],
  150 + full_name=row['nazwakl'],
  151 + index=row['klporz'],
  152 + color_scheme=row['posind'],
  153 + lexical_class = LexicalClass.objects.get(symbol=lc))
150 154  
151 155 def cache_pos(self):
152 156 if 'pos' not in self.__dict__:
... ...
dictionary/migrations/0031_auto__add_field_partofspeech_full_name__add_field_partofspeech_index__.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 'PartOfSpeech.full_name'
  12 + db.add_column('klasygramatyczne', 'full_name',
  13 + self.gf('django.db.models.fields.CharField')(default='brak', max_length=128, db_column='nazwa'),
  14 + keep_default=False)
  15 +
  16 + # Adding field 'PartOfSpeech.index'
  17 + db.add_column('klasygramatyczne', 'index',
  18 + self.gf('django.db.models.fields.IntegerField')(default=0),
  19 + keep_default=False)
  20 +
  21 + # Adding field 'PartOfSpeech.color_schema'
  22 + db.add_column('klasygramatyczne', 'color_schema',
  23 + self.gf('django.db.models.fields.IntegerField')(default=0),
  24 + keep_default=False)
  25 +
  26 +
  27 + def backwards(self, orm):
  28 + # Deleting field 'PartOfSpeech.full_name'
  29 + db.delete_column('klasygramatyczne', 'nazwa')
  30 +
  31 + # Deleting field 'PartOfSpeech.index'
  32 + db.delete_column('klasygramatyczne', 'index')
  33 +
  34 + # Deleting field 'PartOfSpeech.color_schema'
  35 + db.delete_column('klasygramatyczne', 'color_schema')
  36 +
  37 +
  38 + models = {
  39 + u'auth.group': {
  40 + 'Meta': {'object_name': 'Group'},
  41 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  42 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  43 + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  44 + },
  45 + u'auth.permission': {
  46 + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
  47 + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  48 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
  49 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  50 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  51 + },
  52 + u'auth.user': {
  53 + 'Meta': {'object_name': 'User'},
  54 + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  55 + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  56 + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  57 + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  58 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  59 + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
  60 + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  61 + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  62 + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  63 + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  64 + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  65 + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  66 + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  67 + },
  68 + u'contenttypes.contenttype': {
  69 + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  70 + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  71 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  72 + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  73 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  74 + },
  75 + u'dictionary.baseformlabel': {
  76 + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"},
  77 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  78 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'})
  79 + },
  80 + u'dictionary.cell': {
  81 + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"},
  82 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  83 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  84 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}),
  85 + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}),
  86 + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}),
  87 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}),
  88 + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'})
  89 + },
  90 + u'dictionary.classification': {
  91 + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"},
  92 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  93 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  94 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'})
  95 + },
  96 + u'dictionary.classificationvalue': {
  97 + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"},
  98 + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}),
  99 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}),
  100 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  101 + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  102 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}),
  103 + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"})
  104 + },
  105 + u'dictionary.crossreference': {
  106 + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"},
  107 + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}),
  108 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  109 + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}),
  110 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"})
  111 + },
  112 + u'dictionary.crossreferencetype': {
  113 + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"},
  114 + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}),
  115 + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}),
  116 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  117 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}),
  118 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}),
  119 + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"})
  120 + },
  121 + u'dictionary.ending': {
  122 + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"},
  123 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  124 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  125 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}),
  126 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}),
  127 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}),
  128 + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'})
  129 + },
  130 + u'dictionary.history': {
  131 + 'Meta': {'object_name': 'History', 'db_table': "'history'"},
  132 + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}),
  133 + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}),
  134 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  135 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}),
  136 + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}),
  137 + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}),
  138 + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}),
  139 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}),
  140 + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}),
  141 + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}),
  142 + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}),
  143 + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}),
  144 + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}),
  145 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"})
  146 + },
  147 + u'dictionary.inflectioncharacteristic': {
  148 + 'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"},
  149 + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  150 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  151 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  152 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'})
  153 + },
  154 + u'dictionary.inputform': {
  155 + 'Meta': {'object_name': 'InputForm'},
  156 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  157 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  158 + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"})
  159 + },
  160 + u'dictionary.inputlexeme': {
  161 + 'Meta': {'object_name': 'InputLexeme'},
  162 + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  163 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  164 + },
  165 + u'dictionary.lexeme': {
  166 + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"},
  167 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  168 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  169 + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}),
  170 + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}),
  171 + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}),
  172 + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}),
  173 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  174 + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}),
  175 + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}),
  176 + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}),
  177 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  178 + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}),
  179 + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}),
  180 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}),
  181 + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}),
  182 + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}),
  183 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}),
  184 + 'valence': ('django.db.models.fields.TextField', [], {'blank': 'True'})
  185 + },
  186 + u'dictionary.lexemeassociation': {
  187 + 'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)", 'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"},
  188 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  189 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  190 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  191 + },
  192 + u'dictionary.lexemeattribute': {
  193 + 'Meta': {'object_name': 'LexemeAttribute'},
  194 + 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  195 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  196 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False', 'blank': 'True'}),
  197 + 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  198 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
  199 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  200 + 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  201 + 'takes_ic': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
  202 + },
  203 + u'dictionary.lexemeattributevalue': {
  204 + 'Meta': {'ordering': "['value']", 'object_name': 'LexemeAttributeValue'},
  205 + 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'to': u"orm['dictionary.LexemeAttribute']"}),
  206 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  207 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}),
  208 + 'value': ('django.db.models.fields.CharField', [], {'max_length': '32'})
  209 + },
  210 + u'dictionary.lexemeav': {
  211 + 'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)", 'object_name': 'LexemeAV'},
  212 + 'attribute_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexemeAttributeValue']"}),
  213 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  214 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  215 + },
  216 + u'dictionary.lexemecv': {
  217 + 'Meta': {'unique_together': "(['lexeme', 'classification_value'],)", 'object_name': 'LexemeCV'},
  218 + 'classification_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.ClassificationValue']"}),
  219 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  220 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  221 + },
  222 + u'dictionary.lexemeform': {
  223 + 'Meta': {'object_name': 'LexemeForm'},
  224 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
  225 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  226 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  227 + },
  228 + u'dictionary.lexemeinflectionpattern': {
  229 + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"},
  230 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  231 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}),
  232 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  233 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  234 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}),
  235 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}),
  236 + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"})
  237 + },
  238 + u'dictionary.lexicalclass': {
  239 + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"},
  240 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"})
  241 + },
  242 + u'dictionary.paradygmatywsjp': {
  243 + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"},
  244 + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  245 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  246 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  247 + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  248 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  249 + 'kskl': ('django.db.models.fields.IntegerField', [], {}),
  250 + 'morf': ('django.db.models.fields.TextField', [], {}),
  251 + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}),
  252 + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  253 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  254 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  255 + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  256 + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}),
  257 + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'})
  258 + },
  259 + u'dictionary.partofspeech': {
  260 + 'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"},
  261 + 'color_schema': ('django.db.models.fields.IntegerField', [], {}),
  262 + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_column': "'nazwa'"}),
  263 + 'index': ('django.db.models.fields.IntegerField', [], {}),
  264 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  265 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"})
  266 + },
  267 + u'dictionary.pattern': {
  268 + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"},
  269 + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}),
  270 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  271 + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}),
  272 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  273 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}),
  274 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
  275 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"})
  276 + },
  277 + u'dictionary.patterntype': {
  278 + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"},
  279 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  280 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  281 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'})
  282 + },
  283 + u'dictionary.qualifier': {
  284 + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"},
  285 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  286 + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}),
  287 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  288 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}),
  289 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"})
  290 + },
  291 + u'dictionary.qualifierexclusionclass': {
  292 + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"},
  293 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  294 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  295 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  296 + },
  297 + u'dictionary.savedexportdata': {
  298 + 'Meta': {'object_name': 'SavedExportData'},
  299 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  300 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
  301 + 'serialized_data': ('django.db.models.fields.TextField', [], {})
  302 + },
  303 + u'dictionary.savedfilter': {
  304 + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'},
  305 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  306 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  307 + 'serialized_filter': ('django.db.models.fields.TextField', [], {}),
  308 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
  309 + },
  310 + u'dictionary.tablecell': {
  311 + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"},
  312 + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}),
  313 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  314 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  315 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  316 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  317 + 'rowspan': ('django.db.models.fields.IntegerField', [], {})
  318 + },
  319 + u'dictionary.tableheader': {
  320 + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"},
  321 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  322 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  323 + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}),
  324 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  325 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
  326 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  327 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  328 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"})
  329 + },
  330 + u'dictionary.tabletemplate': {
  331 + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"},
  332 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  333 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  334 + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}),
  335 + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"})
  336 + },
  337 + u'dictionary.variant': {
  338 + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"},
  339 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"})
  340 + },
  341 + u'dictionary.vocabulary': {
  342 + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"},
  343 + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}),
  344 + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  345 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}),
  346 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}),
  347 + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  348 + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"})
  349 + }
  350 + }
  351 +
  352 + complete_apps = ['dictionary']
0 353 \ No newline at end of file
... ...
dictionary/migrations/0032_new_pos_fields.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 +values = {
  8 + 'subst': (u'rzeczownik', 1, 0),
  9 + 'ppron': (u'rzeczownik', 2, 0),
  10 + 'osc': (u'rzeczownik', 9, 1),
  11 + 'adj': (u'przymiotnik', 5, 1),
  12 + 'adjcom': (u'przymiotnik stopnia wyższego', 6, 1),
  13 + 'adv': (u'przysłówek', 7, 1),
  14 + 'advcom': (u'przysłówek stopnia wyższego', 8, 1),
  15 + 'v': (u'czasownik', 10, 2),
  16 + 'pred': (u'czasownik niewłaściwy (predykatyw)', 11, 2),
  17 + 'ger': (u'odsłownik', 12, 2),
  18 + 'pact': (u'imiesłów przymiotnikowy czynny', 13, 2),
  19 + 'ppas': (u'imiesłów przymiotnikowy bierny', 14, 2),
  20 + 'appas': (u'quasi-imiesłów bierny', 15, 2),
  21 + 'num': (u'liczebnik', 20, 3),
  22 + 'advndm': (u'przysłówek', 30, 4),
  23 + 'burk': (u'człon niesamodzielny', 31, 4),
  24 + 'comp': (u'spójnik podrzędny', 32, 4),
  25 + 'conj': (u'spójnik współrzędny', 33, 4),
  26 + 'interj': (u'wykrzyknik', 34, 4),
  27 + 'qub': (u'partykuła', 35, 4),
  28 + 'prep': (u'przyimek', 31, 4),
  29 + 'pref': (u'prefiks', 31, 4),
  30 + 'skrl': (u'skrót leksemu', 40, 4),
  31 + 'skrw': (u'skrót wyrażenia', 41, 4),
  32 + 'skrf': (u'skrót frazy', 42, 4),
  33 + 'skrs': (u'skrótowy zapis form', 43, 4),
  34 +}
  35 +
  36 +class Migration(DataMigration):
  37 +
  38 + def forwards(self, orm):
  39 + for pos in orm.PartOfSpeech.objects.all():
  40 + if pos.symbol in values:
  41 + name, index, schema = values[pos.symbol]
  42 + if pos.full_name == 'brak':
  43 + pos.full_name = name
  44 + if pos.index == 0:
  45 + pos.index = index
  46 + if pos.color_schema == 0:
  47 + pos.color_schema = schema
  48 + pos.save()
  49 +
  50 + def backwards(self, orm):
  51 + pass
  52 +
  53 + models = {
  54 + u'auth.group': {
  55 + 'Meta': {'object_name': 'Group'},
  56 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  57 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  58 + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  59 + },
  60 + u'auth.permission': {
  61 + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
  62 + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  63 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
  64 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  65 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  66 + },
  67 + u'auth.user': {
  68 + 'Meta': {'object_name': 'User'},
  69 + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  70 + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  71 + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  72 + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  73 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  74 + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
  75 + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  76 + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  77 + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  78 + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  79 + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  80 + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  81 + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  82 + },
  83 + u'contenttypes.contenttype': {
  84 + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  85 + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  86 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  87 + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  88 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  89 + },
  90 + u'dictionary.baseformlabel': {
  91 + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"},
  92 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  93 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'})
  94 + },
  95 + u'dictionary.cell': {
  96 + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"},
  97 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  98 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  99 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}),
  100 + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}),
  101 + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}),
  102 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}),
  103 + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'})
  104 + },
  105 + u'dictionary.classification': {
  106 + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"},
  107 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  108 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  109 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'})
  110 + },
  111 + u'dictionary.classificationvalue': {
  112 + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"},
  113 + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}),
  114 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}),
  115 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  116 + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  117 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}),
  118 + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"})
  119 + },
  120 + u'dictionary.crossreference': {
  121 + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"},
  122 + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}),
  123 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  124 + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}),
  125 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"})
  126 + },
  127 + u'dictionary.crossreferencetype': {
  128 + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"},
  129 + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}),
  130 + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}),
  131 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  132 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}),
  133 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}),
  134 + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"})
  135 + },
  136 + u'dictionary.ending': {
  137 + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"},
  138 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  139 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  140 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}),
  141 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}),
  142 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}),
  143 + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'})
  144 + },
  145 + u'dictionary.history': {
  146 + 'Meta': {'object_name': 'History', 'db_table': "'history'"},
  147 + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}),
  148 + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}),
  149 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  150 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}),
  151 + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}),
  152 + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}),
  153 + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}),
  154 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}),
  155 + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}),
  156 + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}),
  157 + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}),
  158 + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}),
  159 + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}),
  160 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"})
  161 + },
  162 + u'dictionary.inflectioncharacteristic': {
  163 + 'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"},
  164 + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  165 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  166 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  167 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'})
  168 + },
  169 + u'dictionary.inputform': {
  170 + 'Meta': {'object_name': 'InputForm'},
  171 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  172 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  173 + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"})
  174 + },
  175 + u'dictionary.inputlexeme': {
  176 + 'Meta': {'object_name': 'InputLexeme'},
  177 + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  178 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  179 + },
  180 + u'dictionary.lexeme': {
  181 + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"},
  182 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  183 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  184 + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}),
  185 + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}),
  186 + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}),
  187 + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}),
  188 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  189 + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}),
  190 + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}),
  191 + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}),
  192 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  193 + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}),
  194 + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}),
  195 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}),
  196 + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}),
  197 + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}),
  198 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}),
  199 + 'valence': ('django.db.models.fields.TextField', [], {'blank': 'True'})
  200 + },
  201 + u'dictionary.lexemeassociation': {
  202 + 'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)", 'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"},
  203 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  204 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  205 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  206 + },
  207 + u'dictionary.lexemeattribute': {
  208 + 'Meta': {'object_name': 'LexemeAttribute'},
  209 + 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  210 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  211 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False', 'blank': 'True'}),
  212 + 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  213 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
  214 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  215 + 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  216 + 'takes_ic': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
  217 + },
  218 + u'dictionary.lexemeattributevalue': {
  219 + 'Meta': {'ordering': "['value']", 'object_name': 'LexemeAttributeValue'},
  220 + 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'to': u"orm['dictionary.LexemeAttribute']"}),
  221 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  222 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}),
  223 + 'value': ('django.db.models.fields.CharField', [], {'max_length': '32'})
  224 + },
  225 + u'dictionary.lexemeav': {
  226 + 'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)", 'object_name': 'LexemeAV'},
  227 + 'attribute_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexemeAttributeValue']"}),
  228 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  229 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  230 + },
  231 + u'dictionary.lexemecv': {
  232 + 'Meta': {'unique_together': "(['lexeme', 'classification_value'],)", 'object_name': 'LexemeCV'},
  233 + 'classification_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.ClassificationValue']"}),
  234 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  235 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  236 + },
  237 + u'dictionary.lexemeform': {
  238 + 'Meta': {'object_name': 'LexemeForm'},
  239 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
  240 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  241 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  242 + },
  243 + u'dictionary.lexemeinflectionpattern': {
  244 + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"},
  245 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  246 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}),
  247 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  248 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  249 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}),
  250 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}),
  251 + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"})
  252 + },
  253 + u'dictionary.lexicalclass': {
  254 + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"},
  255 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"})
  256 + },
  257 + u'dictionary.paradygmatywsjp': {
  258 + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"},
  259 + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  260 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  261 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  262 + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  263 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  264 + 'kskl': ('django.db.models.fields.IntegerField', [], {}),
  265 + 'morf': ('django.db.models.fields.TextField', [], {}),
  266 + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}),
  267 + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  268 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  269 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  270 + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  271 + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}),
  272 + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'})
  273 + },
  274 + u'dictionary.partofspeech': {
  275 + 'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"},
  276 + 'color_schema': ('django.db.models.fields.IntegerField', [], {}),
  277 + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_column': "'nazwa'"}),
  278 + 'index': ('django.db.models.fields.IntegerField', [], {}),
  279 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  280 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"})
  281 + },
  282 + u'dictionary.pattern': {
  283 + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"},
  284 + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}),
  285 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  286 + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}),
  287 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  288 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}),
  289 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
  290 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"})
  291 + },
  292 + u'dictionary.patterntype': {
  293 + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"},
  294 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  295 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  296 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'})
  297 + },
  298 + u'dictionary.qualifier': {
  299 + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"},
  300 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  301 + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}),
  302 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  303 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}),
  304 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"})
  305 + },
  306 + u'dictionary.qualifierexclusionclass': {
  307 + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"},
  308 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  309 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  310 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  311 + },
  312 + u'dictionary.savedexportdata': {
  313 + 'Meta': {'object_name': 'SavedExportData'},
  314 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  315 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
  316 + 'serialized_data': ('django.db.models.fields.TextField', [], {})
  317 + },
  318 + u'dictionary.savedfilter': {
  319 + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'},
  320 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  321 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  322 + 'serialized_filter': ('django.db.models.fields.TextField', [], {}),
  323 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
  324 + },
  325 + u'dictionary.tablecell': {
  326 + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"},
  327 + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}),
  328 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  329 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  330 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  331 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  332 + 'rowspan': ('django.db.models.fields.IntegerField', [], {})
  333 + },
  334 + u'dictionary.tableheader': {
  335 + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"},
  336 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  337 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  338 + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}),
  339 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  340 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
  341 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  342 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  343 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"})
  344 + },
  345 + u'dictionary.tabletemplate': {
  346 + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"},
  347 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  348 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  349 + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}),
  350 + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"})
  351 + },
  352 + u'dictionary.variant': {
  353 + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"},
  354 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"})
  355 + },
  356 + u'dictionary.vocabulary': {
  357 + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"},
  358 + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}),
  359 + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  360 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}),
  361 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}),
  362 + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  363 + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"})
  364 + }
  365 + }
  366 +
  367 + complete_apps = ['dictionary']
  368 + symmetrical = True
... ...
dictionary/migrations/0033_auto__del_field_partofspeech_color_schema__add_field_partofspeech_colo.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 + db.rename_column('klasygramatyczne', 'color_schema', 'color_scheme')
  12 +
  13 +
  14 + def backwards(self, orm):
  15 + db.rename_column('klasygramatyczne', 'color_schema', 'color_scheme')
  16 +
  17 +
  18 + models = {
  19 + u'auth.group': {
  20 + 'Meta': {'object_name': 'Group'},
  21 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  22 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  23 + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  24 + },
  25 + u'auth.permission': {
  26 + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
  27 + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  28 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
  29 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  30 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  31 + },
  32 + u'auth.user': {
  33 + 'Meta': {'object_name': 'User'},
  34 + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  35 + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  36 + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  37 + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  38 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  39 + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
  40 + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  41 + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  42 + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  43 + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  44 + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  45 + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  46 + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  47 + },
  48 + u'contenttypes.contenttype': {
  49 + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  50 + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  51 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  52 + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  53 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  54 + },
  55 + u'dictionary.baseformlabel': {
  56 + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"},
  57 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  58 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'})
  59 + },
  60 + u'dictionary.cell': {
  61 + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"},
  62 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  63 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  64 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}),
  65 + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}),
  66 + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}),
  67 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}),
  68 + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'})
  69 + },
  70 + u'dictionary.classification': {
  71 + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"},
  72 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  73 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  74 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'})
  75 + },
  76 + u'dictionary.classificationvalue': {
  77 + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"},
  78 + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}),
  79 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}),
  80 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  81 + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  82 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}),
  83 + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"})
  84 + },
  85 + u'dictionary.crossreference': {
  86 + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"},
  87 + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}),
  88 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  89 + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}),
  90 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"})
  91 + },
  92 + u'dictionary.crossreferencetype': {
  93 + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"},
  94 + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}),
  95 + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}),
  96 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  97 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}),
  98 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}),
  99 + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"})
  100 + },
  101 + u'dictionary.ending': {
  102 + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"},
  103 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  104 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  105 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}),
  106 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}),
  107 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}),
  108 + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'})
  109 + },
  110 + u'dictionary.history': {
  111 + 'Meta': {'object_name': 'History', 'db_table': "'history'"},
  112 + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}),
  113 + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}),
  114 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  115 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}),
  116 + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}),
  117 + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}),
  118 + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}),
  119 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}),
  120 + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}),
  121 + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}),
  122 + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}),
  123 + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}),
  124 + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}),
  125 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"})
  126 + },
  127 + u'dictionary.inflectioncharacteristic': {
  128 + 'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"},
  129 + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  130 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  131 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  132 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'})
  133 + },
  134 + u'dictionary.inputform': {
  135 + 'Meta': {'object_name': 'InputForm'},
  136 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  137 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  138 + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"})
  139 + },
  140 + u'dictionary.inputlexeme': {
  141 + 'Meta': {'object_name': 'InputLexeme'},
  142 + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  143 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  144 + },
  145 + u'dictionary.lexeme': {
  146 + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"},
  147 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  148 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  149 + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}),
  150 + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}),
  151 + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}),
  152 + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}),
  153 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  154 + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}),
  155 + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}),
  156 + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}),
  157 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  158 + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}),
  159 + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}),
  160 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}),
  161 + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}),
  162 + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}),
  163 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}),
  164 + 'valence': ('django.db.models.fields.TextField', [], {'blank': 'True'})
  165 + },
  166 + u'dictionary.lexemeassociation': {
  167 + 'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)", 'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"},
  168 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  169 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  170 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  171 + },
  172 + u'dictionary.lexemeattribute': {
  173 + 'Meta': {'object_name': 'LexemeAttribute'},
  174 + 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  175 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  176 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False', 'blank': 'True'}),
  177 + 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  178 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
  179 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  180 + 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  181 + 'takes_ic': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
  182 + },
  183 + u'dictionary.lexemeattributevalue': {
  184 + 'Meta': {'ordering': "['value']", 'object_name': 'LexemeAttributeValue'},
  185 + 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'to': u"orm['dictionary.LexemeAttribute']"}),
  186 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  187 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}),
  188 + 'value': ('django.db.models.fields.CharField', [], {'max_length': '32'})
  189 + },
  190 + u'dictionary.lexemeav': {
  191 + 'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)", 'object_name': 'LexemeAV'},
  192 + 'attribute_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexemeAttributeValue']"}),
  193 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  194 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  195 + },
  196 + u'dictionary.lexemecv': {
  197 + 'Meta': {'unique_together': "(['lexeme', 'classification_value'],)", 'object_name': 'LexemeCV'},
  198 + 'classification_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.ClassificationValue']"}),
  199 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  200 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  201 + },
  202 + u'dictionary.lexemeform': {
  203 + 'Meta': {'object_name': 'LexemeForm'},
  204 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
  205 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  206 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  207 + },
  208 + u'dictionary.lexemeinflectionpattern': {
  209 + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"},
  210 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  211 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}),
  212 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  213 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  214 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}),
  215 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}),
  216 + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"})
  217 + },
  218 + u'dictionary.lexicalclass': {
  219 + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"},
  220 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"})
  221 + },
  222 + u'dictionary.paradygmatywsjp': {
  223 + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"},
  224 + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  225 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  226 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  227 + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  228 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  229 + 'kskl': ('django.db.models.fields.IntegerField', [], {}),
  230 + 'morf': ('django.db.models.fields.TextField', [], {}),
  231 + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}),
  232 + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  233 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  234 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  235 + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  236 + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}),
  237 + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'})
  238 + },
  239 + u'dictionary.partofspeech': {
  240 + 'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"},
  241 + 'color_scheme': ('django.db.models.fields.IntegerField', [], {}),
  242 + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_column': "'nazwa'"}),
  243 + 'index': ('django.db.models.fields.IntegerField', [], {}),
  244 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  245 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"})
  246 + },
  247 + u'dictionary.pattern': {
  248 + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"},
  249 + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}),
  250 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  251 + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}),
  252 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  253 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}),
  254 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
  255 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"})
  256 + },
  257 + u'dictionary.patterntype': {
  258 + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"},
  259 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  260 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  261 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'})
  262 + },
  263 + u'dictionary.qualifier': {
  264 + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"},
  265 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  266 + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}),
  267 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  268 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}),
  269 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"})
  270 + },
  271 + u'dictionary.qualifierexclusionclass': {
  272 + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"},
  273 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  274 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  275 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  276 + },
  277 + u'dictionary.savedexportdata': {
  278 + 'Meta': {'object_name': 'SavedExportData'},
  279 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  280 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
  281 + 'serialized_data': ('django.db.models.fields.TextField', [], {})
  282 + },
  283 + u'dictionary.savedfilter': {
  284 + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'},
  285 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  286 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  287 + 'serialized_filter': ('django.db.models.fields.TextField', [], {}),
  288 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
  289 + },
  290 + u'dictionary.tablecell': {
  291 + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"},
  292 + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}),
  293 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  294 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  295 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  296 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  297 + 'rowspan': ('django.db.models.fields.IntegerField', [], {})
  298 + },
  299 + u'dictionary.tableheader': {
  300 + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"},
  301 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  302 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  303 + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}),
  304 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  305 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
  306 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  307 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  308 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"})
  309 + },
  310 + u'dictionary.tabletemplate': {
  311 + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"},
  312 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  313 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  314 + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}),
  315 + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"})
  316 + },
  317 + u'dictionary.variant': {
  318 + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"},
  319 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"})
  320 + },
  321 + u'dictionary.vocabulary': {
  322 + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"},
  323 + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}),
  324 + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  325 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}),
  326 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}),
  327 + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  328 + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"})
  329 + }
  330 + }
  331 +
  332 + complete_apps = ['dictionary']
0 333 \ No newline at end of file
... ...
dictionary/models.py
... ... @@ -33,13 +33,16 @@ class LexicalClass(Model):
33 33 class PartOfSpeech(Model):
34 34 symbol = CharField(primary_key=True, max_length=16, db_column='pos')
35 35 lexical_class = ForeignKey(LexicalClass, db_column='czm')
  36 + full_name = CharField(max_length=128, db_column='nazwa')
  37 + index = IntegerField()
  38 + color_scheme = IntegerField()
36 39  
37 40 def __unicode__(self):
38 41 return self.symbol
39 42  
40 43 class Meta:
41 44 db_table = 'klasygramatyczne'
42   - ordering = ['symbol']
  45 + ordering = ['index']
43 46  
44 47  
45 48 class QualifierExclusionClass(Model):
... ...