Commit aea9ea6fc5e80a209135f7a730c3c8e0618ac8ea

Authored by janek37
1 parent 5d43e4b3

usunięte wcięcie z szablonu maila

dictionary/management/commands/convert_tables.py 0 → 100644
  1 +# -*- coding: utf-8 -*-
  2 +from django.core.management import BaseCommand
  3 +from common.util import GroupDict
  4 +from dictionary.models import Cell, NewTableTemplate, LexicalClass, PatternType, NewCell
  5 +
  6 +
  7 +class Command(BaseCommand):
  8 + args = 'none'
  9 + help = 'blah'
  10 +
  11 + def handle(self, **options):
  12 + convert_tables()
  13 +
  14 +TABLE_TEMPLATES = [
  15 + ('rzeczowniki', '1', ('subst', 'osc', 'skrs'), ('f', 'm', 'n', '0'), ()),
  16 + ('pron', '1', ('subst',), ('z0', "z0'", 'z1', 'z1p', 'z2'), ()),
  17 +]
  18 +
  19 +def convert_tables():
  20 + for name, variant, poses, p_types, attrs in TABLE_TEMPLATES:
  21 + cells = Cell.objects.filter(
  22 + table_template__variant__id=variant,
  23 + table_template__inflection_characteristic__part_of_speech__symbol__in=
  24 + poses)
  25 + if p_types:
  26 + cells = cells.filter(
  27 + table_template__pattern_type__symbol__in=p_types)
  28 + # TODO attrs - zinterpretować jako charfle?
  29 + new_template = NewTableTemplate(name=name, variant_id=variant)
  30 + new_template.save()
  31 + for pos in poses:
  32 + new_template.parts_of_speech.add(pos) #add
  33 + lexical_classes = LexicalClass.objects.filter(
  34 + partofspeech__symbol__in=poses)
  35 + pattern_types = PatternType.objects.filter(
  36 + lexical_class__in=lexical_classes, symbol__in=p_types)
  37 + for pt in pattern_types:
  38 + new_template.pattern_types.add(pt) #add
  39 + # TODO attrs
  40 + cell_groups = GroupDict()
  41 + for cell in cells:
  42 + cell_groups.add(
  43 + (cell.prefix, cell.base_form_label, cell.suffix), cell)
  44 + for key, cell_group in cell_groups.iteritems():
  45 + new_cell = NewCell(
  46 + table_template=new_template, base_form_label=key[1],
  47 + prefix=key[0], suffix=key[1])
0 48 \ No newline at end of file
... ...
dictionary/migrations/0037_auto__add_newtablecell__add_newexportcell__add_newcell__add_newtablete.py 0 → 100644
  1 +# -*- coding: utf-8 -*-
  2 +import datetime
  3 +from south.db import db
  4 +from south.v2 import SchemaMigration
  5 +from django.db import models
  6 +
  7 +
  8 +class Migration(SchemaMigration):
  9 +
  10 + def forwards(self, orm):
  11 + # Adding model 'NewTableCell'
  12 + db.create_table(u'dictionary_newtablecell', (
  13 + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  14 + ('cell', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.NewCell'])),
  15 + ('row', self.gf('django.db.models.fields.IntegerField')()),
  16 + ('col', self.gf('django.db.models.fields.IntegerField')()),
  17 + ('rowspan', self.gf('django.db.models.fields.IntegerField')()),
  18 + ('colspan', self.gf('django.db.models.fields.IntegerField')()),
  19 + ('index', self.gf('django.db.models.fields.IntegerField')()),
  20 + ))
  21 + db.send_create_signal(u'dictionary', ['NewTableCell'])
  22 +
  23 + # Adding M2M table for field pattern_types on 'NewTableCell'
  24 + db.create_table(u'dictionary_newtablecell_pattern_types', (
  25 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  26 + ('newtablecell', models.ForeignKey(orm[u'dictionary.newtablecell'], null=False)),
  27 + ('patterntype', models.ForeignKey(orm[u'dictionary.patterntype'], null=False))
  28 + ))
  29 + db.create_unique(u'dictionary_newtablecell_pattern_types', ['newtablecell_id', 'patterntype_id'])
  30 +
  31 + # Adding M2M table for field inflection_characteristics on 'NewTableCell'
  32 + db.create_table(u'dictionary_newtablecell_inflection_characteristics', (
  33 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  34 + ('newtablecell', models.ForeignKey(orm[u'dictionary.newtablecell'], null=False)),
  35 + ('inflectioncharacteristic', models.ForeignKey(orm[u'dictionary.inflectioncharacteristic'], null=False))
  36 + ))
  37 + db.create_unique(u'dictionary_newtablecell_inflection_characteristics', ['newtablecell_id', 'inflectioncharacteristic_id'])
  38 +
  39 + # Adding model 'NewExportCell'
  40 + db.create_table(u'dictionary_newexportcell', (
  41 + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  42 + ('cell', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Cell'])),
  43 + ('tag_template', self.gf('django.db.models.fields.TextField')()),
  44 + ))
  45 + db.send_create_signal(u'dictionary', ['NewExportCell'])
  46 +
  47 + # Adding M2M table for field pattern_types on 'NewExportCell'
  48 + db.create_table(u'dictionary_newexportcell_pattern_types', (
  49 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  50 + ('newexportcell', models.ForeignKey(orm[u'dictionary.newexportcell'], null=False)),
  51 + ('patterntype', models.ForeignKey(orm[u'dictionary.patterntype'], null=False))
  52 + ))
  53 + db.create_unique(u'dictionary_newexportcell_pattern_types', ['newexportcell_id', 'patterntype_id'])
  54 +
  55 + # Adding model 'NewCell'
  56 + db.create_table(u'dictionary_newcell', (
  57 + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  58 + ('table_template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.NewTableTemplate'])),
  59 + ('base_form_label', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.BaseFormLabel'])),
  60 + ('prefix', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)),
  61 + ('suffix', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)),
  62 + ))
  63 + db.send_create_signal(u'dictionary', ['NewCell'])
  64 +
  65 + # Adding M2M table for field parts_of_speech on 'NewCell'
  66 + db.create_table(u'dictionary_newcell_parts_of_speech', (
  67 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  68 + ('newcell', models.ForeignKey(orm[u'dictionary.newcell'], null=False)),
  69 + ('partofspeech', models.ForeignKey(orm[u'dictionary.partofspeech'], null=False))
  70 + ))
  71 + db.create_unique(u'dictionary_newcell_parts_of_speech', ['newcell_id', 'partofspeech_id'])
  72 +
  73 + # Adding M2M table for field inflection_characteristics on 'NewCell'
  74 + db.create_table(u'dictionary_newcell_inflection_characteristics', (
  75 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  76 + ('newcell', models.ForeignKey(orm[u'dictionary.newcell'], null=False)),
  77 + ('inflectioncharacteristic', models.ForeignKey(orm[u'dictionary.inflectioncharacteristic'], null=False))
  78 + ))
  79 + db.create_unique(u'dictionary_newcell_inflection_characteristics', ['newcell_id', 'inflectioncharacteristic_id'])
  80 +
  81 + # Adding M2M table for field pattern_types on 'NewCell'
  82 + db.create_table(u'dictionary_newcell_pattern_types', (
  83 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  84 + ('newcell', models.ForeignKey(orm[u'dictionary.newcell'], null=False)),
  85 + ('patterntype', models.ForeignKey(orm[u'dictionary.patterntype'], null=False))
  86 + ))
  87 + db.create_unique(u'dictionary_newcell_pattern_types', ['newcell_id', 'patterntype_id'])
  88 +
  89 + # Adding M2M table for field attribute_values on 'NewCell'
  90 + db.create_table(u'dictionary_newcell_attribute_values', (
  91 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  92 + ('newcell', models.ForeignKey(orm[u'dictionary.newcell'], null=False)),
  93 + ('lexemeattributevalue', models.ForeignKey(orm[u'dictionary.lexemeattributevalue'], null=False))
  94 + ))
  95 + db.create_unique(u'dictionary_newcell_attribute_values', ['newcell_id', 'lexemeattributevalue_id'])
  96 +
  97 + # Adding model 'NewTableTemplate'
  98 + db.create_table(u'dictionary_newtabletemplate', (
  99 + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  100 + ('name', self.gf('django.db.models.fields.TextField')()),
  101 + ('variant', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Variant'])),
  102 + ))
  103 + db.send_create_signal(u'dictionary', ['NewTableTemplate'])
  104 +
  105 + # Adding M2M table for field parts_of_speech on 'NewTableTemplate'
  106 + db.create_table(u'dictionary_newtabletemplate_parts_of_speech', (
  107 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  108 + ('newtabletemplate', models.ForeignKey(orm[u'dictionary.newtabletemplate'], null=False)),
  109 + ('partofspeech', models.ForeignKey(orm[u'dictionary.partofspeech'], null=False))
  110 + ))
  111 + db.create_unique(u'dictionary_newtabletemplate_parts_of_speech', ['newtabletemplate_id', 'partofspeech_id'])
  112 +
  113 + # Adding M2M table for field pattern_types on 'NewTableTemplate'
  114 + db.create_table(u'dictionary_newtabletemplate_pattern_types', (
  115 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  116 + ('newtabletemplate', models.ForeignKey(orm[u'dictionary.newtabletemplate'], null=False)),
  117 + ('patterntype', models.ForeignKey(orm[u'dictionary.patterntype'], null=False))
  118 + ))
  119 + db.create_unique(u'dictionary_newtabletemplate_pattern_types', ['newtabletemplate_id', 'patterntype_id'])
  120 +
  121 + # Adding M2M table for field attributes on 'NewTableTemplate'
  122 + db.create_table(u'dictionary_newtabletemplate_attributes', (
  123 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  124 + ('newtabletemplate', models.ForeignKey(orm[u'dictionary.newtabletemplate'], null=False)),
  125 + ('lexemeattribute', models.ForeignKey(orm[u'dictionary.lexemeattribute'], null=False))
  126 + ))
  127 + db.create_unique(u'dictionary_newtabletemplate_attributes', ['newtabletemplate_id', 'lexemeattribute_id'])
  128 +
  129 + # Adding M2M table for field attribute_values on 'NewTableTemplate'
  130 + db.create_table(u'dictionary_newtabletemplate_attribute_values', (
  131 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  132 + ('newtabletemplate', models.ForeignKey(orm[u'dictionary.newtabletemplate'], null=False)),
  133 + ('lexemeattributevalue', models.ForeignKey(orm[u'dictionary.lexemeattributevalue'], null=False))
  134 + ))
  135 + db.create_unique(u'dictionary_newtabletemplate_attribute_values', ['newtabletemplate_id', 'lexemeattributevalue_id'])
  136 +
  137 + # Adding model 'NewTableHeader'
  138 + db.create_table(u'dictionary_newtableheader', (
  139 + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  140 + ('table_template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.NewTableTemplate'])),
  141 + ('row', self.gf('django.db.models.fields.IntegerField')()),
  142 + ('col', self.gf('django.db.models.fields.IntegerField')()),
  143 + ('rowspan', self.gf('django.db.models.fields.IntegerField')()),
  144 + ('colspan', self.gf('django.db.models.fields.IntegerField')()),
  145 + ('label', self.gf('django.db.models.fields.CharField')(max_length=64, db_column='nagl', blank=True)),
  146 + ('css_class', self.gf('django.db.models.fields.CharField')(max_length=8, db_column='styl')),
  147 + ))
  148 + db.send_create_signal(u'dictionary', ['NewTableHeader'])
  149 +
  150 + # Adding M2M table for field inflection_characteristics on 'NewTableHeader'
  151 + db.create_table(u'dictionary_newtableheader_inflection_characteristics', (
  152 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  153 + ('newtableheader', models.ForeignKey(orm[u'dictionary.newtableheader'], null=False)),
  154 + ('inflectioncharacteristic', models.ForeignKey(orm[u'dictionary.inflectioncharacteristic'], null=False))
  155 + ))
  156 + db.create_unique(u'dictionary_newtableheader_inflection_characteristics', ['newtableheader_id', 'inflectioncharacteristic_id'])
  157 +
  158 + # Adding M2M table for field pattern_types on 'NewTableHeader'
  159 + db.create_table(u'dictionary_newtableheader_pattern_types', (
  160 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  161 + ('newtableheader', models.ForeignKey(orm[u'dictionary.newtableheader'], null=False)),
  162 + ('patterntype', models.ForeignKey(orm[u'dictionary.patterntype'], null=False))
  163 + ))
  164 + db.create_unique(u'dictionary_newtableheader_pattern_types', ['newtableheader_id', 'patterntype_id'])
  165 +
  166 + # Adding M2M table for field attributes on 'NewTableHeader'
  167 + db.create_table(u'dictionary_newtableheader_attributes', (
  168 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  169 + ('newtableheader', models.ForeignKey(orm[u'dictionary.newtableheader'], null=False)),
  170 + ('lexemeattribute', models.ForeignKey(orm[u'dictionary.lexemeattribute'], null=False))
  171 + ))
  172 + db.create_unique(u'dictionary_newtableheader_attributes', ['newtableheader_id', 'lexemeattribute_id'])
  173 +
  174 + # Adding M2M table for field attribute_values on 'NewTableHeader'
  175 + db.create_table(u'dictionary_newtableheader_attribute_values', (
  176 + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
  177 + ('newtableheader', models.ForeignKey(orm[u'dictionary.newtableheader'], null=False)),
  178 + ('lexemeattributevalue', models.ForeignKey(orm[u'dictionary.lexemeattributevalue'], null=False))
  179 + ))
  180 + db.create_unique(u'dictionary_newtableheader_attribute_values', ['newtableheader_id', 'lexemeattributevalue_id'])
  181 +
  182 +
  183 + def backwards(self, orm):
  184 + # Deleting model 'NewTableCell'
  185 + db.delete_table(u'dictionary_newtablecell')
  186 +
  187 + # Removing M2M table for field pattern_types on 'NewTableCell'
  188 + db.delete_table('dictionary_newtablecell_pattern_types')
  189 +
  190 + # Removing M2M table for field inflection_characteristics on 'NewTableCell'
  191 + db.delete_table('dictionary_newtablecell_inflection_characteristics')
  192 +
  193 + # Deleting model 'NewExportCell'
  194 + db.delete_table(u'dictionary_newexportcell')
  195 +
  196 + # Removing M2M table for field pattern_types on 'NewExportCell'
  197 + db.delete_table('dictionary_newexportcell_pattern_types')
  198 +
  199 + # Deleting model 'NewCell'
  200 + db.delete_table(u'dictionary_newcell')
  201 +
  202 + # Removing M2M table for field parts_of_speech on 'NewCell'
  203 + db.delete_table('dictionary_newcell_parts_of_speech')
  204 +
  205 + # Removing M2M table for field inflection_characteristics on 'NewCell'
  206 + db.delete_table('dictionary_newcell_inflection_characteristics')
  207 +
  208 + # Removing M2M table for field pattern_types on 'NewCell'
  209 + db.delete_table('dictionary_newcell_pattern_types')
  210 +
  211 + # Removing M2M table for field attribute_values on 'NewCell'
  212 + db.delete_table('dictionary_newcell_attribute_values')
  213 +
  214 + # Deleting model 'NewTableTemplate'
  215 + db.delete_table(u'dictionary_newtabletemplate')
  216 +
  217 + # Removing M2M table for field parts_of_speech on 'NewTableTemplate'
  218 + db.delete_table('dictionary_newtabletemplate_parts_of_speech')
  219 +
  220 + # Removing M2M table for field pattern_types on 'NewTableTemplate'
  221 + db.delete_table('dictionary_newtabletemplate_pattern_types')
  222 +
  223 + # Removing M2M table for field attributes on 'NewTableTemplate'
  224 + db.delete_table('dictionary_newtabletemplate_attributes')
  225 +
  226 + # Removing M2M table for field attribute_values on 'NewTableTemplate'
  227 + db.delete_table('dictionary_newtabletemplate_attribute_values')
  228 +
  229 + # Deleting model 'NewTableHeader'
  230 + db.delete_table(u'dictionary_newtableheader')
  231 +
  232 + # Removing M2M table for field inflection_characteristics on 'NewTableHeader'
  233 + db.delete_table('dictionary_newtableheader_inflection_characteristics')
  234 +
  235 + # Removing M2M table for field pattern_types on 'NewTableHeader'
  236 + db.delete_table('dictionary_newtableheader_pattern_types')
  237 +
  238 + # Removing M2M table for field attributes on 'NewTableHeader'
  239 + db.delete_table('dictionary_newtableheader_attributes')
  240 +
  241 + # Removing M2M table for field attribute_values on 'NewTableHeader'
  242 + db.delete_table('dictionary_newtableheader_attribute_values')
  243 +
  244 +
  245 + models = {
  246 + u'auth.group': {
  247 + 'Meta': {'object_name': 'Group'},
  248 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  249 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  250 + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  251 + },
  252 + u'auth.permission': {
  253 + 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
  254 + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  255 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
  256 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  257 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  258 + },
  259 + u'auth.user': {
  260 + 'Meta': {'object_name': 'User'},
  261 + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  262 + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  263 + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  264 + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  265 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  266 + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
  267 + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  268 + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  269 + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  270 + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  271 + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  272 + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  273 + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  274 + },
  275 + u'contenttypes.contenttype': {
  276 + 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  277 + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  278 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  279 + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  280 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  281 + },
  282 + u'dictionary.baseformlabel': {
  283 + 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"},
  284 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  285 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'})
  286 + },
  287 + u'dictionary.cell': {
  288 + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"},
  289 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  290 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  291 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}),
  292 + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}),
  293 + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}),
  294 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}),
  295 + 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'})
  296 + },
  297 + u'dictionary.classification': {
  298 + 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"},
  299 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  300 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  301 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'})
  302 + },
  303 + u'dictionary.classificationvalue': {
  304 + 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"},
  305 + 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': u"orm['dictionary.Classification']"}),
  306 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}),
  307 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  308 + 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  309 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeCV']", 'blank': 'True'}),
  310 + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': u"orm['dictionary.ClassificationValue']"})
  311 + },
  312 + u'dictionary.crossreference': {
  313 + 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"},
  314 + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': u"orm['dictionary.Lexeme']"}),
  315 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  316 + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': u"orm['dictionary.Lexeme']"}),
  317 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"})
  318 + },
  319 + u'dictionary.crossreferencetype': {
  320 + 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"},
  321 + 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}),
  322 + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': u"orm['dictionary.PartOfSpeech']"}),
  323 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  324 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}),
  325 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}),
  326 + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': u"orm['dictionary.PartOfSpeech']"})
  327 + },
  328 + u'dictionary.ending': {
  329 + 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"},
  330 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  331 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  332 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}),
  333 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': u"orm['dictionary.Pattern']"}),
  334 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}),
  335 + 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'})
  336 + },
  337 + u'dictionary.history': {
  338 + 'Meta': {'object_name': 'History', 'db_table': "'history'"},
  339 + 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}),
  340 + 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}),
  341 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  342 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}),
  343 + 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}),
  344 + 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}),
  345 + 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}),
  346 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}),
  347 + 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}),
  348 + 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}),
  349 + 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}),
  350 + 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}),
  351 + 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}),
  352 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'db_column': "'user_id_'"})
  353 + },
  354 + u'dictionary.inflectioncharacteristic': {
  355 + 'Meta': {'unique_together': "(('symbol', 'part_of_speech'),)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"},
  356 + 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  357 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  358 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  359 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'})
  360 + },
  361 + u'dictionary.inputform': {
  362 + 'Meta': {'object_name': 'InputForm'},
  363 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  364 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  365 + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InputLexeme']"})
  366 + },
  367 + u'dictionary.inputlexeme': {
  368 + 'Meta': {'object_name': 'InputLexeme'},
  369 + 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}),
  370 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  371 + },
  372 + u'dictionary.lexeme': {
  373 + 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"},
  374 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  375 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  376 + 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}),
  377 + 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}),
  378 + 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}),
  379 + 'homonym_number': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_column': "'hom'"}),
  380 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  381 + 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}),
  382 + 'note': ('django.db.models.fields.TextField', [], {'db_column': "'nota'", 'blank': 'True'}),
  383 + 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"}),
  384 + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}),
  385 + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Pattern']", 'through': u"orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}),
  386 + 'pronunciation': ('django.db.models.fields.TextField', [], {'db_column': "'wymowa'", 'blank': 'True'}),
  387 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}),
  388 + 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}),
  389 + 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}),
  390 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}),
  391 + 'valence': ('django.db.models.fields.TextField', [], {'blank': 'True'})
  392 + },
  393 + u'dictionary.lexemeassociation': {
  394 + 'Meta': {'unique_together': "(['lexeme', 'vocabulary'],)", 'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"},
  395 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  396 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  397 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  398 + },
  399 + u'dictionary.lexemeattribute': {
  400 + 'Meta': {'object_name': 'LexemeAttribute'},
  401 + 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  402 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  403 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False', 'blank': 'True'}),
  404 + 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  405 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
  406 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  407 + 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  408 + 'takes_ic': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
  409 + },
  410 + u'dictionary.lexemeattributevalue': {
  411 + 'Meta': {'ordering': "['value']", 'object_name': 'LexemeAttributeValue'},
  412 + 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'to': u"orm['dictionary.LexemeAttribute']"}),
  413 + 'display_value': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'}),
  414 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  415 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Lexeme']", 'symmetrical': 'False', 'through': u"orm['dictionary.LexemeAV']", 'blank': 'True'}),
  416 + 'value': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'})
  417 + },
  418 + u'dictionary.lexemeav': {
  419 + 'Meta': {'unique_together': "(['lexeme', 'attribute_value'],)", 'object_name': 'LexemeAV'},
  420 + 'attribute_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexemeAttributeValue']"}),
  421 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  422 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  423 + },
  424 + u'dictionary.lexemecv': {
  425 + 'Meta': {'unique_together': "(['lexeme', 'classification_value'],)", 'object_name': 'LexemeCV'},
  426 + 'classification_value': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.ClassificationValue']"}),
  427 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  428 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  429 + },
  430 + u'dictionary.lexemeform': {
  431 + 'Meta': {'object_name': 'LexemeForm'},
  432 + 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
  433 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  434 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']"})
  435 + },
  436 + u'dictionary.lexemeinflectionpattern': {
  437 + 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"},
  438 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  439 + 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}),
  440 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  441 + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Lexeme']", 'db_column': "'l_id'"}),
  442 + 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Pattern']", 'db_column': "'w_id'"}),
  443 + 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}),
  444 + 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"})
  445 + },
  446 + u'dictionary.lexicalclass': {
  447 + 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"},
  448 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"})
  449 + },
  450 + u'dictionary.newcell': {
  451 + 'Meta': {'object_name': 'NewCell'},
  452 + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}),
  453 + 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']"}),
  454 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  455 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False'}),
  456 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  457 + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}),
  458 + 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  459 + 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  460 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.NewTableTemplate']"})
  461 + },
  462 + u'dictionary.newexportcell': {
  463 + 'Meta': {'object_name': 'NewExportCell'},
  464 + 'cell': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Cell']"}),
  465 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  466 + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}),
  467 + 'tag_template': ('django.db.models.fields.TextField', [], {})
  468 + },
  469 + u'dictionary.newtablecell': {
  470 + 'Meta': {'object_name': 'NewTableCell'},
  471 + 'cell': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.NewCell']"}),
  472 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  473 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  474 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  475 + 'index': ('django.db.models.fields.IntegerField', [], {}),
  476 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False'}),
  477 + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}),
  478 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  479 + 'rowspan': ('django.db.models.fields.IntegerField', [], {})
  480 + },
  481 + u'dictionary.newtableheader': {
  482 + 'Meta': {'object_name': 'NewTableHeader'},
  483 + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}),
  484 + 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttribute']", 'symmetrical': 'False'}),
  485 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  486 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  487 + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}),
  488 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  489 + 'inflection_characteristics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'symmetrical': 'False'}),
  490 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
  491 + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}),
  492 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  493 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  494 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.NewTableTemplate']"})
  495 + },
  496 + u'dictionary.newtabletemplate': {
  497 + 'Meta': {'object_name': 'NewTableTemplate'},
  498 + 'attribute_values': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttributeValue']", 'symmetrical': 'False'}),
  499 + 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.LexemeAttribute']", 'symmetrical': 'False'}),
  500 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  501 + 'name': ('django.db.models.fields.TextField', [], {}),
  502 + 'parts_of_speech': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PartOfSpeech']", 'symmetrical': 'False'}),
  503 + 'pattern_types': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dictionary.PatternType']", 'symmetrical': 'False'}),
  504 + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']"})
  505 + },
  506 + u'dictionary.paradygmatywsjp': {
  507 + 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"},
  508 + 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  509 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  510 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  511 + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}),
  512 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  513 + 'kskl': ('django.db.models.fields.IntegerField', [], {}),
  514 + 'morf': ('django.db.models.fields.TextField', [], {}),
  515 + 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}),
  516 + 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  517 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  518 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  519 + 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
  520 + 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typr'"}),
  521 + 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'})
  522 + },
  523 + u'dictionary.partofspeech': {
  524 + 'Meta': {'ordering': "['index']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"},
  525 + 'color_scheme': ('django.db.models.fields.IntegerField', [], {}),
  526 + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_column': "'nazwa'"}),
  527 + 'index': ('django.db.models.fields.IntegerField', [], {}),
  528 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  529 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"})
  530 + },
  531 + u'dictionary.pattern': {
  532 + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"},
  533 + 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}),
  534 + 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}),
  535 + 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}),
  536 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  537 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}),
  538 + 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
  539 + 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'typ'"})
  540 + },
  541 + u'dictionary.patterntype': {
  542 + 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"},
  543 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  544 + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.LexicalClass']", 'db_column': "'czm'"}),
  545 + 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'})
  546 + },
  547 + u'dictionary.qualifier': {
  548 + 'Meta': {'ordering': "['label']", 'unique_together': "(('label', 'vocabulary'),)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"},
  549 + 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}),
  550 + 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}),
  551 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  552 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}),
  553 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': u"orm['dictionary.Vocabulary']"})
  554 + },
  555 + u'dictionary.qualifierexclusionclass': {
  556 + 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"},
  557 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  558 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}),
  559 + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Vocabulary']", 'db_column': "'slownik'"})
  560 + },
  561 + u'dictionary.savedexportdata': {
  562 + 'Meta': {'object_name': 'SavedExportData'},
  563 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  564 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
  565 + 'serialized_data': ('django.db.models.fields.TextField', [], {})
  566 + },
  567 + u'dictionary.savedfilter': {
  568 + 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'},
  569 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  570 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  571 + 'serialized_filter': ('django.db.models.fields.TextField', [], {}),
  572 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
  573 + },
  574 + u'dictionary.tablecell': {
  575 + 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"},
  576 + 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}),
  577 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  578 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  579 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  580 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  581 + 'rowspan': ('django.db.models.fields.IntegerField', [], {})
  582 + },
  583 + u'dictionary.tableheader': {
  584 + 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"},
  585 + 'col': ('django.db.models.fields.IntegerField', [], {}),
  586 + 'colspan': ('django.db.models.fields.IntegerField', [], {}),
  587 + 'css_class': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'styl'"}),
  588 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  589 + 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}),
  590 + 'row': ('django.db.models.fields.IntegerField', [], {}),
  591 + 'rowspan': ('django.db.models.fields.IntegerField', [], {}),
  592 + 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.TableTemplate']", 'db_column': "'st_id'"})
  593 + },
  594 + u'dictionary.tabletemplate': {
  595 + 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"},
  596 + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  597 + 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}),
  598 + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.PatternType']", 'db_column': "'wtyp'"}),
  599 + 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dictionary.Variant']", 'db_column': "'wariant'"})
  600 + },
  601 + u'dictionary.variant': {
  602 + 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"},
  603 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"})
  604 + },
  605 + u'dictionary.vocabulary': {
  606 + 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"},
  607 + 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': u"orm['dictionary.Classification']"}),
  608 + 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  609 + 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}),
  610 + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': u"orm['dictionary.LexemeAssociation']", 'to': u"orm['dictionary.Lexeme']"}),
  611 + 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"}),
  612 + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': u"orm['auth.User']"})
  613 + }
  614 + }
  615 +
  616 + complete_apps = ['dictionary']
0 617 \ No newline at end of file
... ...
dictionary/models.py
... ... @@ -1052,6 +1052,56 @@ class TableHeader(Model):
1052 1052 db_table = 'naglowki_tabel'
1053 1053  
1054 1054  
  1055 +class NewTableTemplate(Model):
  1056 + name = TextField()
  1057 + variant = ForeignKey(Variant)
  1058 + parts_of_speech = ManyToManyField(PartOfSpeech)
  1059 + pattern_types = ManyToManyField(PatternType)
  1060 + attributes = ManyToManyField(LexemeAttribute)
  1061 + attribute_values = ManyToManyField(LexemeAttributeValue)
  1062 +
  1063 +
  1064 +class NewCell(Model):
  1065 + table_template = ForeignKey(NewTableTemplate)
  1066 + base_form_label = ForeignKey(BaseFormLabel)
  1067 + prefix = CharField(max_length=20, blank=True)
  1068 + suffix = CharField(max_length=20, blank=True)
  1069 + parts_of_speech = ManyToManyField(PartOfSpeech)
  1070 + pattern_types = ManyToManyField(PatternType)
  1071 + inflection_characteristics = ManyToManyField(InflectionCharacteristic)
  1072 + attribute_values = ManyToManyField(LexemeAttributeValue)
  1073 +
  1074 +
  1075 +class NewTableCell(Model):
  1076 + cell = ForeignKey(NewCell)
  1077 + pattern_types = ManyToManyField(PatternType)
  1078 + inflection_characteristics = ManyToManyField(InflectionCharacteristic)
  1079 + row = IntegerField()
  1080 + col = IntegerField()
  1081 + rowspan = IntegerField()
  1082 + colspan = IntegerField()
  1083 + index = IntegerField()
  1084 +
  1085 +
  1086 +class NewExportCell(Model):
  1087 + cell = ForeignKey(Cell)
  1088 + pattern_types = ManyToManyField(PatternType)
  1089 + tag_template = TextField()
  1090 +
  1091 +
  1092 +class NewTableHeader(Model):
  1093 + table_template = ForeignKey(NewTableTemplate)
  1094 + inflection_characteristics = ManyToManyField(InflectionCharacteristic)
  1095 + pattern_types = ManyToManyField(PatternType)
  1096 + attributes = ManyToManyField(LexemeAttribute)
  1097 + attribute_values = ManyToManyField(LexemeAttributeValue)
  1098 + row = IntegerField()
  1099 + col = IntegerField()
  1100 + rowspan = IntegerField()
  1101 + colspan = IntegerField()
  1102 + label = CharField(max_length=64, blank=True, db_column='nagl')
  1103 + css_class = CharField(max_length=8, db_column='styl')
  1104 +
1055 1105 # na szybko i brudno
1056 1106 class ParadygmatyWSJP(Model):
1057 1107 wariant = CharField(max_length=4)
... ...
templates/registration/password_reset_email.html
1 1 {% load i18n %}{% load url from future %}{% autoescape off %}
  2 +Szanowny Użytkowniku!
2 3  
3   - Szanowny Użytkowniku!
  4 +Ten list jest częścią procedury ustanawiania lub zmiany hasła w systemie
  5 +Kuźnia.
  6 +Jeżeli fakt, że masz konto w systemie Kuźnia jest dla Ciebie
  7 +zaskoczeniem, zechciej ten list uznać za doniesienie, że właśnie
  8 +założyliśmy Ci konto.
4 9  
5   - Ten list jest częścią procedury ustanawiania lub zmiany hasła w systemie
6   - Kuźnia.
7   - Jeżeli fakt, że masz konto w systemie Kuźnia jest dla Ciebie
8   - zaskoczeniem, zechciej ten list uznać za doniesienie, że właśnie
9   - założyliśmy Ci konto.
  10 +Aby wprowadzić nowe hasło, przejdź na następującą stronę:
  11 +{% block reset_link %}
  12 + {{ protocol }}://
  13 + {{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
  14 +{% endblock %}
10 15  
11   - Aby wprowadzić nowe hasło, przejdź na następującą stronę:
12   - {% block reset_link %}
13   - {{ protocol }}://
14   - {{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
15   - {% endblock %}
  16 +Twoja nazwa użytkownika: {{ user.username }}
16 17  
17   - Twoja nazwa użytkownika: {{ user.username }}
18   -
19   - Z wyrazami szacunku
20   - Zespół Kuźni
  18 +Z wyrazami szacunku
  19 +Zespół Kuźni
21 20 {% endautoescape %}
... ...