Commit 7be5956a5c1e97ee89ba837c248906721fac9982

Authored by janek37
1 parent 9e724e01

trochę porządku w klasach nagłówków

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