Commit 9e724e01e6fe0beb7f1467834b8240de0d536fe4

Authored by janek37
1 parent c5724f56

poprawki do klasy css nagłówków

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