Commit 2fa3c5d91b002584efa4938d3fd481be92b51841
1 parent
e29bb514
widok slickgrid do dostosowania do SlickGrida
Showing
89 changed files
with
17137 additions
and
7589 deletions
Too many changes to show.
To preserve performance only 37 of 89 files are displayed.
accounts/management/commands/create_users.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -from django.contrib.auth.models import Permission, Group, User | |
4 | -from django.core.management.base import BaseCommand, CommandError | |
3 | +from django.contrib.auth.models import Group, User | |
4 | +from django.core.management.base import BaseCommand | |
5 | 5 | from dictionary.models import Vocabulary |
6 | 6 | from accounts.models import UserSettings |
7 | 7 | |
... | ... | @@ -36,14 +36,14 @@ def create_users(): |
36 | 36 | sgjp = User.objects.create_user('sgjp', 'sgjp@example.com', 'sgjp') |
37 | 37 | nzm = User.objects.create_user('nzm', 'nzm@example.com', 'nzm') |
38 | 38 | redsgjp = User.objects.create_user('redsgjp', 'redsgjp@example.com', |
39 | - 'redsgjp') | |
39 | + 'redsgjp') | |
40 | 40 | rednzm = User.objects.create_user('rednzm', 'rednzm@example.com', 'rednzm') |
41 | 41 | supersgjp = User.objects.create_user('supersgjp', 'supersgjp@example.com', |
42 | - 'supersgjp') | |
42 | + 'supersgjp') | |
43 | 43 | supernzm = User.objects.create_user('supernzm', 'supernzm@example.com', |
44 | - 'supernzm') | |
44 | + 'supernzm') | |
45 | 45 | wzornik = User.objects.create_user('wzornik', 'wzornik@example.com', |
46 | - 'wzornik') | |
46 | + 'wzornik') | |
47 | 47 | admin = User.objects.create_user('admin', 'admin@example.com', 'admin') |
48 | 48 | |
49 | 49 | users = (sgjp, nzm, redsgjp, rednzm, supersgjp, supernzm, wzornik, admin) |
... | ... |
accounts/templates/registration/password_change_form.html
... | ... | @@ -9,49 +9,51 @@ |
9 | 9 | {% block content %} |
10 | 10 | <div id="content-main"> |
11 | 11 | |
12 | - <form action="" method="post">{% csrf_token %} | |
13 | - <div> | |
14 | - {% if form.errors %} | |
15 | - <p class="errornote"> | |
16 | - {% blocktrans count form.errors.items|length as counter %} | |
17 | - Please correct the error below.{% plural %}Please | |
18 | - correct the errors below.{% endblocktrans %} | |
19 | - </p> | |
20 | - {% endif %} | |
21 | - | |
22 | - <h1>{% trans 'Password change' %}</h1> | |
23 | - | |
24 | - <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p> | |
25 | - | |
26 | - <fieldset class="module aligned wide"> | |
27 | - | |
28 | - <div class="form-row"> | |
29 | - {{ form.old_password.errors }} | |
30 | - <label for="id_old_password" | |
31 | - class="required">{% trans 'Old password' %}:</label>{{ form.old_password }} | |
12 | + <form action="" method="post">{% csrf_token %} | |
13 | + <div> | |
14 | + {% if form.errors %} | |
15 | + <p class="errornote"> | |
16 | + {% blocktrans count form.errors.items|length as counter %} | |
17 | + Please correct the error below.{% plural %}Please | |
18 | + correct the errors below.{% endblocktrans %} | |
19 | + </p> | |
20 | + {% endif %} | |
21 | + | |
22 | + <h1>{% trans 'Password change' %}</h1> | |
23 | + | |
24 | + <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p> | |
25 | + | |
26 | + <fieldset class="module aligned wide"> | |
27 | + | |
28 | + <div class="form-row"> | |
29 | + {{ form.old_password.errors }} | |
30 | + <label for="id_old_password" | |
31 | + class="required">{% trans 'Old password' %}:</label>{{ form.old_password }} | |
32 | + </div> | |
33 | + | |
34 | + <div class="form-row"> | |
35 | + {{ form.new_password1.errors }} | |
36 | + <label for="id_new_password1" | |
37 | + class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }} | |
38 | + </div> | |
39 | + | |
40 | + <div class="form-row"> | |
41 | + {{ form.new_password2.errors }} | |
42 | + <label for="id_new_password2" | |
43 | + class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }} | |
44 | + </div> | |
45 | + | |
46 | + </fieldset> | |
47 | + | |
48 | + <div class="submit-row"> | |
49 | + <input type="submit" | |
50 | + value="{% trans 'Change my password' %}" | |
51 | + class="default"/> | |
32 | 52 | </div> |
33 | 53 | |
34 | - <div class="form-row"> | |
35 | - {{ form.new_password1.errors }} | |
36 | - <label for="id_new_password1" | |
37 | - class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }} | |
38 | - </div> | |
39 | - | |
40 | - <div class="form-row"> | |
41 | - {{ form.new_password2.errors }} | |
42 | - <label for="id_new_password2" | |
43 | - class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }} | |
44 | - </div> | |
45 | - | |
46 | - </fieldset> | |
47 | - | |
48 | - <div class="submit-row"> | |
49 | - <input type="submit" value="{% trans 'Change my password' %}" | |
50 | - class="default"/> | |
54 | + <script type="text/javascript">document.getElementById("id_old_password").focus();</script> | |
51 | 55 | </div> |
52 | - | |
53 | - <script type="text/javascript">document.getElementById("id_old_password").focus();</script> | |
54 | - </div> | |
55 | - </form></div> | |
56 | + </form> | |
57 | + </div> | |
56 | 58 | |
57 | 59 | {% endblock %} |
... | ... |
accounts/templates/registration/registration_form.html
... | ... | @@ -17,26 +17,27 @@ |
17 | 17 | {% block content %} |
18 | 18 | <div id="content-main"> |
19 | 19 | |
20 | - <form action="" method="post">{% csrf_token %} | |
21 | - <div> | |
22 | - {% if form.errors %} | |
23 | - <p class="errornote"> | |
24 | - {% blocktrans count form.errors.items|length as counter %} | |
25 | - Please correct the error below.{% plural %}Please | |
26 | - correct the errors below.{% endblocktrans %} | |
27 | - </p> | |
28 | - {% endif %} | |
29 | - | |
30 | - <h1>{% trans 'Registration' %}</h1> | |
31 | - | |
32 | - {{ form.as_p }} | |
33 | - | |
34 | - <div class="submit-row"> | |
35 | - <input type="submit" value="{% trans 'Add user' %}" | |
36 | - class="default"/> | |
37 | - </div> | |
20 | + <form action="" method="post">{% csrf_token %} | |
21 | + <div> | |
22 | + {% if form.errors %} | |
23 | + <p class="errornote"> | |
24 | + {% blocktrans count form.errors.items|length as counter %} | |
25 | + Please correct the error below.{% plural %}Please | |
26 | + correct the errors below.{% endblocktrans %} | |
27 | + </p> | |
28 | + {% endif %} | |
29 | + | |
30 | + <h1>{% trans 'Registration' %}</h1> | |
31 | + | |
32 | + {{ form.as_p }} | |
38 | 33 | |
39 | - </div> | |
40 | - </form></div> | |
34 | + <div class="submit-row"> | |
35 | + <input type="submit" value="{% trans 'Add user' %}" | |
36 | + class="default"/> | |
37 | + </div> | |
38 | + | |
39 | + </div> | |
40 | + </form> | |
41 | + </div> | |
41 | 42 | |
42 | 43 | {% endblock %} |
... | ... |
common/decorators.py
... | ... | @@ -38,9 +38,9 @@ def ajax(login_required=True, method=None, encode_result=True, template=None): |
38 | 38 | fun_params, xx, fun_kwargs, xxxx = getargspec(fun) |
39 | 39 | if request_params: |
40 | 40 | request_params = dict((key, json_decode_fallback(value)) |
41 | - for key, value in | |
42 | - request_params.iteritems() | |
43 | - if fun_kwargs or key in fun_params) | |
41 | + for key, value in | |
42 | + request_params.iteritems() | |
43 | + if fun_kwargs or key in fun_params) | |
44 | 44 | kwargs.update(stringify_keys(request_params)) |
45 | 45 | res = None |
46 | 46 | if login_required and not request.user.is_authenticated(): |
... | ... | @@ -53,12 +53,12 @@ def ajax(login_required=True, method=None, encode_result=True, template=None): |
53 | 53 | res = {'result': e.args[0]} |
54 | 54 | if template: |
55 | 55 | res = {'html': render_to_string(template, res, |
56 | - RequestContext(request))} | |
56 | + RequestContext(request))} | |
57 | 57 | if encode_result: |
58 | 58 | if 'result' not in res: |
59 | 59 | res['result'] = 'ok' |
60 | 60 | return HttpResponse(json_encode(res), |
61 | - mimetype='application/json') | |
61 | + mimetype='application/json') | |
62 | 62 | else: |
63 | 63 | return res |
64 | 64 | |
... | ... |
common/forms.py
... | ... | @@ -19,7 +19,7 @@ class ChoiceWithOtherRenderer(forms.RadioSelect.renderer): |
19 | 19 | for input in super(ChoiceWithOtherRenderer, self).__iter__(): |
20 | 20 | yield input |
21 | 21 | id = '%s_%s' % ( |
22 | - self.attrs['id'], self.other[0]) if 'id' in self.attrs else '' | |
22 | + self.attrs['id'], self.other[0]) if 'id' in self.attrs else '' | |
23 | 23 | label_for = ' for="%s"' % id if id else '' |
24 | 24 | checked = '' if not force_unicode( |
25 | 25 | self.other[0]) == self.value else 'checked="true" ' |
... | ... | @@ -33,7 +33,7 @@ class ChoiceWithOtherWidget(forms.MultiWidget): |
33 | 33 | def __init__(self, choices): |
34 | 34 | widgets = [ |
35 | 35 | forms.RadioSelect(choices=choices, |
36 | - renderer=ChoiceWithOtherRenderer), | |
36 | + renderer=ChoiceWithOtherRenderer), | |
37 | 37 | forms.TextInput |
38 | 38 | ] |
39 | 39 | super(ChoiceWithOtherWidget, self).__init__(widgets) |
... | ... | @@ -65,7 +65,7 @@ class ChoiceWithOtherField(forms.MultiValueField): |
65 | 65 | self._was_required = kwargs.pop('required', True) |
66 | 66 | kwargs['required'] = False |
67 | 67 | super(ChoiceWithOtherField, self).__init__(widget=widget, fields=fields, |
68 | - *args, **kwargs) | |
68 | + *args, **kwargs) | |
69 | 69 | |
70 | 70 | def compress(self, value): |
71 | 71 | if self._was_required and (not value or value[0] in (None, '')): |
... | ... |
common/middleware.py
... | ... | @@ -21,5 +21,5 @@ class MyMiddleware(object): |
21 | 21 | print 'Total of %s queries for %s.' % ( |
22 | 22 | len(connection.queries), request.path) |
23 | 23 | print 'Total time: %s' % sum(Decimal(q['time']) |
24 | - for q in connection.queries) | |
24 | + for q in connection.queries) | |
25 | 25 | return response |
26 | 26 | \ No newline at end of file |
... | ... |
common/util.py
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | import json |
4 | 4 | import sys |
5 | 5 | from django.conf import urls |
6 | -from django.http import HttpResponseRedirect, Http404 | |
6 | +from django.http import HttpResponseRedirect | |
7 | 7 | |
8 | 8 | |
9 | 9 | def debug(entry, text): |
... | ... | @@ -49,7 +49,7 @@ def url(regex, view, **kwargs): |
49 | 49 | |
50 | 50 | def stringify_keys(dictionary): |
51 | 51 | return dict((keyword.encode('ascii'), value) |
52 | - for keyword, value in dictionary.iteritems()) | |
52 | + for keyword, value in dictionary.iteritems()) | |
53 | 53 | |
54 | 54 | # copypasta ze standardowego moduลu bisect |
55 | 55 | def bisect_left(a, x, lo=0, hi=None, cmp=None): |
... | ... | @@ -104,7 +104,7 @@ def error_messages(form): |
104 | 104 | return '\n'.join( |
105 | 105 | '%s: %s' % (form.fields[k].label, ' '.join(v)) if k != '__all__' |
106 | 106 | else ' '.join(v) |
107 | - for k, v in form.errors.iteritems()) | |
107 | + for k, v in form.errors.iteritems()) | |
108 | 108 | |
109 | 109 | |
110 | 110 | class GroupDict(dict): |
... | ... |
dictionary/ajax_export.py
... | ... | @@ -33,11 +33,11 @@ def save_export_data(request, name, serialized_data, force=False): |
33 | 33 | @ajax(method='get') |
34 | 34 | def get_export_data(request): |
35 | 35 | data_list = [{ |
36 | - 'id': 'export%s' % data.pk, | |
37 | - 'name': data.name, | |
38 | - 'json': data.serialized_data, | |
39 | - } | |
40 | - for data in SavedExportData.objects.all()] | |
36 | + 'id': 'export%s' % data.pk, | |
37 | + 'name': data.name, | |
38 | + 'json': data.serialized_data, | |
39 | + } | |
40 | + for data in SavedExportData.objects.all()] | |
41 | 41 | return {'data_list': data_list} |
42 | 42 | |
43 | 43 | |
... | ... |
dictionary/ajax_filters.py
... | ... | @@ -28,11 +28,11 @@ def save_filter(request, name, serialized_filter, super=False, force=False): |
28 | 28 | @ajax(method='get') |
29 | 29 | def get_filters(request): |
30 | 30 | filters = [{ |
31 | - 'id': 'filter%s' % filter.pk, | |
32 | - 'name': filter.name, | |
33 | - 'json': filter.serialized_filter, | |
34 | - } | |
35 | - for filter in SavedFilter.objects.filter(user=request.user)] | |
31 | + 'id': 'filter%s' % filter.pk, | |
32 | + 'name': filter.name, | |
33 | + 'json': filter.serialized_filter, | |
34 | + } | |
35 | + for filter in SavedFilter.objects.filter(user=request.user)] | |
36 | 36 | return {'filters': filters} |
37 | 37 | |
38 | 38 | |
... | ... |
dictionary/ajax_jqgrid.py
... | ... | @@ -2,7 +2,6 @@ |
2 | 2 | |
3 | 3 | import math |
4 | 4 | from accounts.models import filtering_mode |
5 | -from common.decorators import render, ajax | |
6 | 5 | |
7 | 6 | |
8 | 7 | class JqGridQuery(object): |
... | ... | @@ -253,9 +252,9 @@ class JqGridAjax(object): |
253 | 252 | @classmethod |
254 | 253 | def make_response(cls, response_qs, count, page, total_pages): |
255 | 254 | rows = [{ |
256 | - 'id': instance.pk, | |
257 | - 'cell': cls.response_row(instance), | |
258 | - } for instance in response_qs] | |
255 | + 'id': instance.pk, | |
256 | + 'cell': cls.response_row(instance), | |
257 | + } for instance in response_qs] | |
259 | 258 | return { |
260 | 259 | 'page': page, |
261 | 260 | 'total': total_pages, |
... | ... | @@ -268,6 +267,6 @@ class JqGridAjax(object): |
268 | 267 | queryset = cls.get_sorted_queryset(query) |
269 | 268 | count = queryset.count() |
270 | 269 | total_pages, start, response_rowcount = cls.count_pages(count, page, |
271 | - limit) | |
270 | + limit) | |
272 | 271 | response_qs = queryset[start:start + response_rowcount] |
273 | 272 | return cls.make_response(response_qs, count, page, total_pages) |
274 | 273 | \ No newline at end of file |
... | ... |
dictionary/ajax_lexeme_jqgrid.py
... | ... | @@ -4,10 +4,10 @@ from hashlib import md5 |
4 | 4 | from django.db.models import Count |
5 | 5 | from django.core.cache import cache |
6 | 6 | |
7 | -from dictionary.models import Lexeme, filter_visible, visible_vocabularies, LexemeInflectionPattern, LexemeAssociation | |
7 | +from dictionary.models import Lexeme, filter_visible, visible_vocabularies | |
8 | 8 | from dictionary.ajax_jqgrid import JqGridAjax, JqGridQuery |
9 | 9 | from common.decorators import ajax |
10 | -from common.util import bisect_left, reverse, GroupDict, json_encode | |
10 | +from common.util import bisect_left, reverse, json_encode | |
11 | 11 | |
12 | 12 | |
13 | 13 | class LexemeGrid(JqGridAjax): |
... | ... | @@ -55,7 +55,7 @@ class LexemeGrid(JqGridAjax): |
55 | 55 | elif field == 'ic_count': |
56 | 56 | queryset = queryset.annotate( |
57 | 57 | icc=Count('lexemeinflectionpattern__inflection_characteristic', |
58 | - distinct=True)) | |
58 | + distinct=True)) | |
59 | 59 | elif field == 'qualifier': |
60 | 60 | where = '''( |
61 | 61 | exists ( |
... | ... | @@ -111,7 +111,7 @@ class LexemeGrid(JqGridAjax): |
111 | 111 | else: |
112 | 112 | comp = '<=' |
113 | 113 | queryset = queryset.extra(where=["reverse(haslo) " + comp + " %s"], |
114 | - params=[reverse(from_value)]) | |
114 | + params=[reverse(from_value)]) | |
115 | 115 | return True, queryset |
116 | 116 | else: |
117 | 117 | return False, queryset |
... | ... | @@ -171,7 +171,7 @@ class LexemeGrid(JqGridAjax): |
171 | 171 | return selected_pk, index, count |
172 | 172 | |
173 | 173 | index = bisect_left(pk_list, query.mask, |
174 | - cmp=make_lexeme_cmp(sort_rules[0])) | |
174 | + cmp=make_lexeme_cmp(sort_rules[0])) | |
175 | 175 | if index == count: |
176 | 176 | index -= 1 |
177 | 177 | return pk_list[index], index, count |
... | ... |
dictionary/ajax_lexeme_view.py
... | ... | @@ -56,7 +56,7 @@ def table_preview(request, lexeme_id, pattern, inflection_characteristic, |
56 | 56 | lip.root = get_root(entry, pos, pattern, inflection_characteristic) |
57 | 57 | qualifiers = visible_qualifiers(request.user) |
58 | 58 | table = lip.inflection_table('0', separated=True, qualifiers=qualifiers, |
59 | - edit_view=True) | |
59 | + edit_view=True) | |
60 | 60 | prepare_table(table) |
61 | 61 | except Pattern.DoesNotExist: |
62 | 62 | table = None |
... | ... | @@ -151,7 +151,7 @@ def lexeme_edit_form(request, id): |
151 | 151 | (LIPEditForm( |
152 | 152 | lexeme=l, part_of_speech=l.part_of_speech, instance=lip, |
153 | 153 | prefix='lip' + str(lip.pk), user=request.user, editable=editable), |
154 | - lip.qualifiers.filter(vocabulary=owner) if ro_owner else []) | |
154 | + lip.qualifiers.filter(vocabulary=owner) if ro_owner else []) | |
155 | 155 | for lip in lips] |
156 | 156 | crs = l.refs_to.order_by('type__index') |
157 | 157 | to_return['cross_references'] = crs |
... | ... | @@ -165,7 +165,7 @@ def check_classifications(request, owner_id, pos): |
165 | 165 | classifications = owner.classifications.filter( |
166 | 166 | parts_of_speech=part_of_speech) |
167 | 167 | return { |
168 | - 'classifications': list(classifications.values_list('pk', flat=True))} | |
168 | + 'classifications': list(classifications.values_list('pk', flat=True))} | |
169 | 169 | |
170 | 170 | |
171 | 171 | def make_classification_forms(lexeme, vocabulary=None, part_of_speech=None, |
... | ... | @@ -340,8 +340,8 @@ def update_lexeme(request, form_data, mask=''): |
340 | 340 | instance=lip, user=request.user, index=len(submitted_lips)) |
341 | 341 | if lip_form.is_valid(): |
342 | 342 | lip = lip_form.save() |
343 | - lip.root = l.get_root(lip.pattern, | |
344 | - lip.inflection_characteristic) | |
343 | + lip.root = l.get_root( | |
344 | + lip.pattern, lip.inflection_characteristic) | |
345 | 345 | if lip.root is None: |
346 | 346 | raise AjaxError( |
347 | 347 | u'Niepasujฤ ce zakoลczenie formy podstawowej.') |
... | ... |
dictionary/ajax_pattern_view.py
... | ... | @@ -127,7 +127,7 @@ def update_pattern(request, form_data): |
127 | 127 | symbol=bfl_endings['base_form_label']) |
128 | 128 | endings = [] |
129 | 129 | for index, ending_data in zip(range(1, len(endings_data) + 1), |
130 | - endings_data): | |
130 | + endings_data): | |
131 | 131 | quals = set(int(q) for q in ending_data['qualifiers']) |
132 | 132 | if ending_data['id'] == 'add': |
133 | 133 | ending = Ending.objects.create( |
... | ... |
dictionary/ajax_prompter.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -from common.decorators import render, ajax, AjaxError | |
3 | +from common.decorators import ajax | |
4 | 4 | from common.util import suffix, cut_end |
5 | -from dictionary.models import Lexeme, LexemeInflectionPattern, Pattern, \ | |
6 | - InflectionCharacteristic, prepare_table, visible_vocabularies, get_root, \ | |
5 | +from dictionary.models import LexemeInflectionPattern, InflectionCharacteristic, get_root, \ | |
7 | 6 | ClassificationValue, Classification, filter_visible_lips |
8 | 7 | from dictionary.pattern_blacklist import blacklist |
9 | 8 | |
... | ... |
dictionary/export.py
dictionary/forms.py
... | ... | @@ -5,7 +5,7 @@ from common.forms import hidden_id |
5 | 5 | from dictionary.models import Lexeme, LexemeInflectionPattern, Ending, \ |
6 | 6 | InflectionCharacteristic, Pattern, PatternType, Classification, \ |
7 | 7 | ClassificationValue, Vocabulary, CrossReference, Qualifier, \ |
8 | - QualifierExclusionClass, Variant, editable_vocabularies, editable_qualifiers, LexemeAttribute, LexemeAttributeValue | |
8 | + QualifierExclusionClass, Variant, editable_vocabularies, editable_qualifiers, LexemeAttributeValue | |
9 | 9 | |
10 | 10 | |
11 | 11 | def disable_field(field): |
... | ... | @@ -18,7 +18,7 @@ def disable_field(field): |
18 | 18 | class QualifiersField(ModelMultipleChoiceField): |
19 | 19 | def __init__(self, **kwargs): |
20 | 20 | super(QualifiersField, self).__init__(Qualifier.objects.none(), |
21 | - **kwargs) | |
21 | + **kwargs) | |
22 | 22 | self.to_field_name = None #? |
23 | 23 | |
24 | 24 | def set_qualifiers(self, user, qualified=None, lexeme=None): |
... | ... | @@ -301,8 +301,8 @@ class AddQualifierForm(ModelForm): |
301 | 301 | self.fields['vocabulary'].initial = vocabulary |
302 | 302 | if vocabulary: |
303 | 303 | self.fields['exclusion_class'].queryset = ( |
304 | - QualifierExclusionClass.objects | |
305 | - .filter(vocabulary=vocabulary).distinct()) | |
304 | + QualifierExclusionClass.objects | |
305 | + .filter(vocabulary=vocabulary).distinct()) | |
306 | 306 | |
307 | 307 | def clean(self): |
308 | 308 | cleaned_data = self.cleaned_data |
... | ... | @@ -356,11 +356,11 @@ class CrossReferenceForm(ModelForm): |
356 | 356 | 'size': 12, |
357 | 357 | })) |
358 | 358 | homonym_number = IntegerField(label=u'hom.', |
359 | - widget=TextInput(attrs={ | |
360 | - 'class': 'homonym-number', | |
361 | - 'readonly': 'readonly', | |
362 | - 'size': 1, | |
363 | - })) | |
359 | + widget=TextInput(attrs={ | |
360 | + 'class': 'homonym-number', | |
361 | + 'readonly': 'readonly', | |
362 | + 'size': 1, | |
363 | + })) | |
364 | 364 | |
365 | 365 | def __init__(self, lexeme=None, pos=None, **kwargs): |
366 | 366 | super(CrossReferenceForm, self).__init__(**kwargs) |
... | ... | @@ -526,7 +526,7 @@ class LexemeQualifierActionForm(Form): |
526 | 526 | |
527 | 527 | class LexemeQualifierValueForm(Form): |
528 | 528 | value = QualifierField(label=u'', |
529 | - widget=Select(attrs={'class': 'value-choice'})) | |
529 | + widget=Select(attrs={'class': 'value-choice'})) | |
530 | 530 | |
531 | 531 | def __init__(self, request, **kwargs): |
532 | 532 | super(LexemeQualifierValueForm, self).__init__(**kwargs) |
... | ... | @@ -535,12 +535,12 @@ class LexemeQualifierValueForm(Form): |
535 | 535 | |
536 | 536 | ACTION_FIELDS = ( |
537 | 537 | ('status', |
538 | - (u'Status', StatusActionForm, StatusValueForm)), | |
538 | + (u'Status', StatusActionForm, StatusValueForm)), | |
539 | 539 | ('using_vocabulary', |
540 | - (u'Sลownik uลผywajฤ cy', UsingVocabularyActionForm, VocabularyValueForm)), | |
540 | + (u'Sลownik uลผywajฤ cy', UsingVocabularyActionForm, VocabularyValueForm)), | |
541 | 541 | ('lexeme_qualifier', |
542 | - (u'Kwalifikator leksemu', | |
543 | - LexemeQualifierActionForm, LexemeQualifierValueForm)), | |
542 | + (u'Kwalifikator leksemu', | |
543 | + LexemeQualifierActionForm, LexemeQualifierValueForm)), | |
544 | 544 | ) |
545 | 545 | |
546 | 546 | |
... | ... |
dictionary/history.py
... | ... | @@ -141,14 +141,14 @@ def transaction_table(transaction_data): |
141 | 141 | table = item1.table_name |
142 | 142 | column = item1.column_name |
143 | 143 | if (table == 'leksemy' and column == 'usuniety' and |
144 | - item1.new_value == 'true' and item1.old_value == 'false'): | |
144 | + item1.new_value == 'true' and item1.old_value == 'false'): | |
145 | 145 | deleted = True |
146 | 146 | attr = None |
147 | 147 | if (table, column) in attribute_translation: |
148 | 148 | attr = attribute_translation[(table, column)] |
149 | 149 | before, after = tuple( |
150 | 150 | prepare_value(table, column, v) |
151 | - for v in (item1.old_value, item1.new_value)) | |
151 | + for v in (item1.old_value, item1.new_value)) | |
152 | 152 | before_after = ( |
153 | 153 | before if item1.operation != 'INSERT' else None, |
154 | 154 | after if item1.operation != 'DELETE' else None) |
... | ... | @@ -266,8 +266,8 @@ def deleted_lexeme_table(lexeme): |
266 | 266 | if table == 'leksemy': |
267 | 267 | rows.append( |
268 | 268 | (attr, |
269 | - (prepare_value(table, column, get_lexeme_attr(column, lexeme)), | |
270 | - None))) | |
269 | + (prepare_value(table, column, get_lexeme_attr(column, lexeme)), | |
270 | + None))) | |
271 | 271 | for q in lexeme.qualifiers.all(): |
272 | 272 | rows.append((u'kwalifikator', (q.label, None))) |
273 | 273 | for classification in lexeme.owner_vocabulary.classifications.all(): |
... | ... | @@ -281,7 +281,7 @@ def deleted_lexeme_table(lexeme): |
281 | 281 | attr = u'odsyลacz' |
282 | 282 | rows.append((attr, ( |
283 | 283 | ' '.join([cr.type.symbol, cr.to_lexeme.entry, |
284 | - cr.to_lexeme.lip_data()['inflection_characteristics']]), | |
284 | + cr.to_lexeme.lip_data()['inflection_characteristics']]), | |
285 | 285 | None))) |
286 | 286 | lip_tables = [] |
287 | 287 | for lip in lexeme.lexemeinflectionpattern_set.all(): |
... | ... | @@ -293,7 +293,7 @@ def deleted_lexeme_table(lexeme): |
293 | 293 | attr = u'kwalifikator' |
294 | 294 | lip_data.append((attr, (q.label, None))) |
295 | 295 | header = '%s/%s' % ( |
296 | - lip.inflection_characteristic.symbol, lip.pattern.name) | |
296 | + lip.inflection_characteristic.symbol, lip.pattern.name) | |
297 | 297 | lip_tables.append((header, lip_data)) |
298 | 298 | return rows, lip_tables |
299 | 299 | |
... | ... |
dictionary/management/commands/check_ispell.py
... | ... | @@ -35,4 +35,4 @@ def check_ispell(input_file): |
35 | 35 | for flags, res in results.iteritems(): |
36 | 36 | print ('%s=%s,%s' % |
37 | 37 | ((flags, dict_repr(res['pos']), |
38 | - dict_repr(res['ic'])))).encode('utf-8') | |
39 | 38 | \ No newline at end of file |
39 | + dict_repr(res['ic'])))).encode('utf-8') | |
40 | 40 | \ No newline at end of file |
... | ... |
dictionary/management/commands/check_morfologik.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -import sys | |
4 | -from django.core.management.base import BaseCommand, CommandError | |
5 | -from common.util import debug | |
3 | +from django.core.management.base import BaseCommand | |
6 | 4 | from dictionary.models import Lexeme |
7 | 5 | |
8 | 6 | |
... | ... | @@ -109,8 +107,8 @@ def check_forms(lc_sym, forms): |
109 | 107 | if forms | l.all_forms(label_filter='^pl:nom$') == l_forms: |
110 | 108 | break |
111 | 109 | if (u'rozszerzone singulare' in l.comment |
112 | - or u'rozszerzyฤ sgtant' in l.comment | |
113 | - or l.owner_vocabulary.id != 'Morfologik'): | |
110 | + or u'rozszerzyฤ sgtant' in l.comment | |
111 | + or l.owner_vocabulary.id != 'Morfologik'): | |
114 | 112 | if forms == l.all_forms(label_filter='^sg:'): |
115 | 113 | break |
116 | 114 | elif lc_sym == 'adj': |
... | ... |
dictionary/management/commands/disamb.py
... | ... | @@ -2,9 +2,7 @@ |
2 | 2 | #-*- coding:utf-8 -*- |
3 | 3 | |
4 | 4 | import sys |
5 | -from django.db import connection, transaction | |
6 | -from django.core.management.base import BaseCommand, CommandError | |
7 | -from common.util import debug | |
5 | +from django.core.management.base import BaseCommand | |
8 | 6 | from dictionary.util import expand_tag |
9 | 7 | |
10 | 8 | |
... | ... | @@ -49,8 +47,8 @@ def base_tag(tag): |
49 | 47 | # forms: lista {form: forma, tags: lista moลผliwych tagรณw)? |
50 | 48 | def disamb_lexeme(forms): |
51 | 49 | base_form_tags = (tag for tag, base |
52 | - in zip(forms[0]['tags'], forms[0]['base']) | |
53 | - if base and base_tag(tag)) | |
50 | + in zip(forms[0]['tags'], forms[0]['base']) | |
51 | + if base and base_tag(tag)) | |
54 | 52 | possible_pos = set(tag.split(':')[0] for tag in base_form_tags) |
55 | 53 | entry = forms[0]['form'] |
56 | 54 | if forms[0]['tags'][0] == '-': |
... | ... | @@ -79,11 +77,11 @@ def disamb_lexeme(forms): |
79 | 77 | fixed = None |
80 | 78 | if tags[0].startswith('subst'): |
81 | 79 | fixed = ['subst:ger' + tag[len('subst'):] for tag in |
82 | - tags] | |
80 | + tags] | |
83 | 81 | elif tags[0].startswith('adj'): |
84 | 82 | start = None |
85 | 83 | if any(form['form'].endswith(end) for end in |
86 | - [u'cy', u'ca', u'ce', | |
84 | + [u'cy', u'ca', u'ce', | |
87 | 85 | u'cฤ ', u'cego', u'cej', u'cemu', u'cym', |
88 | 86 | u'cych', u'cymi']): |
89 | 87 | start = 'pact' |
... | ... | @@ -98,16 +96,17 @@ def disamb_lexeme(forms): |
98 | 96 | new_forms.append(form) |
99 | 97 | else: |
100 | 98 | if pos == 'adj' and 'adv' in (tag.split(':')[0] for tag in |
101 | - form['tags']): | |
99 | + form['tags']): | |
102 | 100 | form['tags'] = [tag for tag in form['tags'] if |
103 | - tag.startswith('adv')] | |
101 | + tag.startswith('adv')] | |
104 | 102 | other_lexemes.append([form]) |
105 | 103 | nie_prefix = '' |
106 | 104 | while forms[0]['form'].startswith(nie_prefix): |
107 | 105 | nie_prefix += 'nie' |
108 | 106 | if not form['form'].startswith(nie_prefix): |
109 | 107 | print >> sys.stderr, ( |
110 | - u'advadj: %s %s' % (form['form'], forms[0]['form'])).encode( | |
108 | + u'advadj: %s %s' % ( | |
109 | + form['form'], forms[0]['form'])).encode( | |
111 | 110 | 'utf-8') |
112 | 111 | else: |
113 | 112 | form['tags'] = [pos + ':irreg'] |
... | ... | @@ -115,10 +114,10 @@ def disamb_lexeme(forms): |
115 | 114 | #print >>sys.stderr, (u'odrzucona forma: %s %s [%s]' % |
116 | 115 | # (form['form'], ', '.join(form['tags']), pos)).encode('utf-8') |
117 | 116 | |
118 | - # if len(new_forms[0]['tags']) == 1: | |
119 | - # if pos not in base_tag: | |
120 | - # base_tag[pos] = set() | |
121 | - # base_tag[pos].add(new_forms[0]['tags'][0]) | |
117 | + # if len(new_forms[0]['tags']) == 1: | |
118 | + # if pos not in base_tag: | |
119 | + # base_tag[pos] = set() | |
120 | + # base_tag[pos].add(new_forms[0]['tags'][0]) | |
122 | 121 | |
123 | 122 | if pos == 'subst': |
124 | 123 | # ujednoznaczniฤ rodzaj... niezguลa, sezamek |
... | ... | @@ -143,16 +142,16 @@ def disamb_lexeme(forms): |
143 | 142 | good_genders.append(gender) |
144 | 143 | if len(good_genders) != 1: |
145 | 144 | print >> sys.stderr, ( |
146 | - u'%s: nie da siฤ ujednoznaczniฤ rodzaju' % | |
147 | - entry).encode('utf-8') | |
145 | + u'%s: nie da siฤ ujednoznaczniฤ rodzaju' % | |
146 | + entry).encode('utf-8') | |
148 | 147 | return None, None |
149 | 148 | gender = good_genders[0] |
150 | - # znamy rodzaj, przesiewamy | |
149 | + # znamy rodzaj, przesiewamy | |
151 | 150 | for form in new_forms: |
152 | 151 | good_tags = [] |
153 | 152 | for tag in all_tags(form): |
154 | 153 | if tag[-1][0] in (gender, 'i') or ( |
155 | - tag[-1] == 'depr' and gender == 'm'): | |
154 | + tag[-1] == 'depr' and gender == 'm'): | |
156 | 155 | good_tags.append(':'.join(tag)) |
157 | 156 | if good_tags: |
158 | 157 | form['tags'] = good_tags |
... | ... | @@ -192,7 +191,8 @@ def parse_file(path): |
192 | 191 | forms[-1]['base'].append( |
193 | 192 | base == entry or tag == 'adv:comp' |
194 | 193 | or ( |
195 | - tag.startswith('subst:pl') and 'nom' in tag)) # brzydko... | |
194 | + tag.startswith( | |
195 | + 'subst:pl') and 'nom' in tag)) # brzydko... | |
196 | 196 | |
197 | 197 | # for pos, tags in base_tag.iteritems(): |
198 | 198 | # print ('base %s: %s' % (pos, ', '.join(tags))).encode('utf-8') |
... | ... |
dictionary/management/commands/extra_crs.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | 3 | import sys |
4 | -from django.core.management.base import BaseCommand, CommandError | |
4 | +from django.core.management.base import BaseCommand | |
5 | 5 | from common.util import no_history |
6 | 6 | from dictionary.models import Lexeme, Vocabulary, CrossReference |
7 | 7 | |
... | ... | @@ -86,7 +86,7 @@ def add_crs(type, path): |
86 | 86 | make_detail(advnegs, u'zanegowane', morf, details) |
87 | 87 | make_detail(advs, u'niezanegowane', morf, details) |
88 | 88 | debug(advneg_e, |
89 | - u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
89 | + u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
90 | 90 | elif advnegs.count() == 0 or advs.count() == 0: |
91 | 91 | lack = which_lacks( |
92 | 92 | advnegs, u'zanegowanego', advs, u'niezanegowanego') |
... | ... | @@ -107,36 +107,36 @@ def add_crs(type, path): |
107 | 107 | make_detail(advnegs, u'zanegowane', morf, details) |
108 | 108 | make_detail(adjs, u'przymiotniki', morf, details) |
109 | 109 | debug(advneg_e, |
110 | - u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
110 | + u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
111 | 111 | elif advnegs.count() == 0 or adjs.count() == 0: |
112 | 112 | lack = which_lacks( |
113 | 113 | advnegs, u'zanegowanego', adjs, u'przymiotnika') |
114 | 114 | debug(advneg_e, u'Brak %s' % lack) |
115 | 115 | else: |
116 | 116 | advs = [cr.to_lexeme.pk for cr |
117 | - in adjs[0].refs_to.filter(type='adjadv')] | |
117 | + in adjs[0].refs_to.filter(type='adjadv')] | |
118 | 118 | advs += [cr.from_lexeme.pk for cr |
119 | - in adjs[0].refs_from.filter(type='advadj')] | |
119 | + in adjs[0].refs_from.filter(type='advadj')] | |
120 | 120 | advs = adv.filter(pk__in=advs).distinct() |
121 | 121 | if len(advs) > 1: |
122 | 122 | details = [] |
123 | 123 | make_detail(advs, u'niezanegowane', morf, details) |
124 | 124 | debug(advneg_e, |
125 | - u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
125 | + u'Niejednoznacznoลฤ: %s' % '; '.join(details)) | |
126 | 126 | elif len(advs) == 0: |
127 | 127 | debug(advneg_e, u'Brak niezanegowanego') |
128 | 128 | else: |
129 | 129 | connect(advnegs[0], advs[0], cr_type) |
130 | 130 | else: |
131 | 131 | debug(advneg_e, |
132 | - u'Brak drugiego leksemu [przymiotnik lub przysลรณwek]') | |
132 | + u'Brak drugiego leksemu [przymiotnik lub przysลรณwek]') | |
133 | 133 | elif type == 'advadj': |
134 | 134 | cr_type = ('advadj', 'adjadv') |
135 | 135 | for line in file: |
136 | 136 | adv_e, adj_e = line.strip().decode('utf-8').split() |
137 | 137 | advs = adv.filter(entry=adv_e, part_of_speech__symbol='adv') |
138 | 138 | adjs = adj.filter(entry=adj_e, |
139 | - patterns__name__contains='').distinct() | |
139 | + patterns__name__contains='').distinct() | |
140 | 140 | if advs.count() > 1 or adjs.count() > 1: |
141 | 141 | details = [] |
142 | 142 | make_detail(advs, u'przysลรณwki', morf, details) |
... | ... | @@ -144,7 +144,7 @@ def add_crs(type, path): |
144 | 144 | debug(adv_e, u'Niejednoznacznoลฤ: %s' % '; '.join(details)) |
145 | 145 | elif advs.count() == 0 or adjs.count() == 0: |
146 | 146 | lack = which_lacks(advs, u'przysลรณwka', adjs, |
147 | - u'przymiotnika') | |
147 | + u'przymiotnika') | |
148 | 148 | debug(adv_e, u'Brak %s' % lack) |
149 | 149 | else: |
150 | 150 | connect(advs[0], adjs[0], cr_type) |
... | ... | @@ -191,5 +191,5 @@ def add_crs(type, path): |
191 | 191 | for adj in adjs: |
192 | 192 | for advcom in advcoms: |
193 | 193 | if not adj.refs_to.filter(to_lexeme=advcom, |
194 | - type='adjadvc'): | |
194 | + type='adjadvc'): | |
195 | 195 | connect(adj, advcom, cr_type) |
... | ... |
dictionary/management/commands/filter_new.py
dictionary/management/commands/fix_morfologik.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -import sys | |
4 | -from django.core.management.base import BaseCommand, CommandError | |
3 | +from django.core.management.base import BaseCommand | |
5 | 4 | from common.util import no_history, debug |
6 | 5 | from dictionary.models import Lexeme, Pattern, Vocabulary, \ |
7 | 6 | Qualifier, InflectionCharacteristic |
... | ... | @@ -39,7 +38,7 @@ def cand_ndm(): |
39 | 38 | l.save() |
40 | 39 | for l in (existing.filter( |
41 | 40 | status='desc', lexemeinflectionpattern__pattern__name='ndm') |
42 | - .exclude(part_of_speech__symbol='adv')): | |
41 | + .exclude(part_of_speech__symbol='adv')): | |
43 | 42 | l.status = 'cand' |
44 | 43 | l.save() |
45 | 44 | |
... | ... |
dictionary/management/commands/fix_osc.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -import sys | |
4 | -from django.core.management.base import BaseCommand, CommandError | |
3 | +from django.core.management.base import BaseCommand | |
5 | 4 | from common.util import no_history, debug |
6 | 5 | from dictionary.models import Lexeme, Vocabulary, PartOfSpeech, CrossReference |
7 | 6 | |
... | ... |
dictionary/management/commands/fix_surnames.py
1 | 1 | #-*- coding:utf-8 -*- |
2 | 2 | |
3 | -import sys | |
4 | -from django.core.management.base import BaseCommand, CommandError | |
3 | +from django.core.management.base import BaseCommand | |
5 | 4 | from common.util import no_history, debug |
6 | 5 | from dictionary.models import Lexeme, Vocabulary |
7 | 6 | |
... | ... | @@ -22,8 +21,8 @@ def fix_surnames(): |
22 | 21 | sgjp = SGJP.owned_lexemes_pk() |
23 | 22 | existing = Lexeme.objects |
24 | 23 | sgjp_subst = existing.filter(# jak odsiewam po SGJP, to nic nie zostaje... |
25 | - part_of_speech__symbol='subst', | |
26 | - entry__regex=u'^[A-Zฤฤฤลลรลลปลน]') | |
24 | + part_of_speech__symbol='subst', | |
25 | + entry__regex=u'^[A-Zฤฤฤลลรลลปลน]') | |
27 | 26 | morf_surnames = existing.filter( |
28 | 27 | pk__in=morf, part_of_speech__symbol='adj', |
29 | 28 | entry__regex=u'^[A-Zฤฤฤลลรลลปลน]') |
... | ... |
dictionary/management/commands/import_data.py
... | ... | @@ -201,7 +201,7 @@ class ImportData(object): |
201 | 201 | if 'lc_pos' not in self.__dict__: |
202 | 202 | self.lc_pos = dict( |
203 | 203 | (pos.symbol, pos.lexical_class) for pos in |
204 | - PartOfSpeech.objects.all() | |
204 | + PartOfSpeech.objects.all() | |
205 | 205 | ) |
206 | 206 | |
207 | 207 | def new_base_form_labels(self): |
... | ... | @@ -236,7 +236,7 @@ class ImportData(object): |
236 | 236 | if 'ics' not in self.__dict__: |
237 | 237 | self.ics = dict( |
238 | 238 | ((ic.symbol, ic.part_of_speech.symbol), ic) |
239 | - for ic in InflectionCharacteristic.objects.all() | |
239 | + for ic in InflectionCharacteristic.objects.all() | |
240 | 240 | ) |
241 | 241 | |
242 | 242 | def new_vocabularies(self): |
... | ... | @@ -268,7 +268,7 @@ class ImportData(object): |
268 | 268 | if qualifier_label not in added: |
269 | 269 | added.add(qualifier_label) |
270 | 270 | yield Qualifier(label=qualifier_label, |
271 | - vocabulary=default) | |
271 | + vocabulary=default) | |
272 | 272 | |
273 | 273 | def cache_qualifiers(self): |
274 | 274 | if 'qual' not in self.__dict__: |
... | ... | @@ -336,18 +336,18 @@ class ImportData(object): |
336 | 336 | for qual in row['lkwal'].split('|'): |
337 | 337 | lexeme_qualifiers.append((row['nr'], self.qual[qual])) |
338 | 338 | for attr_name, ( |
339 | - (poses, ic), values, (column, f)) in ATTRS.iteritems(): | |
339 | + (poses, ic), values, (column, f)) in ATTRS.iteritems(): | |
340 | 340 | if row['pos'] in poses: |
341 | 341 | attr_value = attr_values[attr_name].get(f(row[column])) |
342 | 342 | if attr_value: |
343 | 343 | lexeme_attrs.append( |
344 | 344 | LexemeAV(lexeme_id=row['nr'], |
345 | - attribute_value=attr_value)) | |
345 | + attribute_value=attr_value)) | |
346 | 346 | elif row[column]: |
347 | 347 | print 'unknown value of %s: %s' % ( |
348 | - attr_name, row[column]) | |
348 | + attr_name, row[column]) | |
349 | 349 | return (lexemes, lexeme_associations, lexeme_cvs, lexeme_qualifiers, |
350 | - lexeme_attrs) | |
350 | + lexeme_attrs) | |
351 | 351 | |
352 | 352 | def new_lexeme_associations(self): |
353 | 353 | self.cache_vocabs() |
... | ... | @@ -380,7 +380,7 @@ class ImportData(object): |
380 | 380 | 'join typyodsylaczy t on t.typods=o.typods') |
381 | 381 | for row in result: |
382 | 382 | desc = self.CR_DESC.get((row['typods'], row['pos2']), |
383 | - row['naglowek']) | |
383 | + row['naglowek']) | |
384 | 384 | yield CrossReferenceType( |
385 | 385 | symbol=row['typods'], |
386 | 386 | desc=desc, |
... | ... | @@ -406,7 +406,7 @@ class ImportData(object): |
406 | 406 | ) |
407 | 407 | cr_type_table = dict( |
408 | 408 | ((crt.symbol, crt.from_pos.symbol, crt.to_pos.symbol), crt) |
409 | - for crt in CrossReferenceType.objects.all() | |
409 | + for crt in CrossReferenceType.objects.all() | |
410 | 410 | ) |
411 | 411 | for row in result: |
412 | 412 | # niekompletne odsyลacze zdarzajฤ siฤ dla 'asp' |
... | ... | @@ -447,7 +447,7 @@ class ImportData(object): |
447 | 447 | for row in result: |
448 | 448 | lc = self.lc_pos[row['pos']] |
449 | 449 | PatternType.objects.get_or_create(lexical_class=lc, |
450 | - symbol=row['typr']) | |
450 | + symbol=row['typr']) | |
451 | 451 | # prowizorka z powodu pustej klasy 'skr' |
452 | 452 | self.cache_lc() |
453 | 453 | result = self.sqlite_cursor.execute( |
... | ... | @@ -455,13 +455,13 @@ class ImportData(object): |
455 | 455 | for row in result: |
456 | 456 | lc = self.lc[row['pos']] |
457 | 457 | PatternType.objects.get_or_create(lexical_class=lc, |
458 | - symbol=row['typr']) | |
458 | + symbol=row['typr']) | |
459 | 459 | |
460 | 460 | def cache_ptypes(self): |
461 | 461 | if 'ptypes' not in self.__dict__: |
462 | 462 | self.ptypes = dict( |
463 | 463 | ((pt.lexical_class.symbol, pt.symbol), pt) |
464 | - for pt in PatternType.objects.all() | |
464 | + for pt in PatternType.objects.all() | |
465 | 465 | ) |
466 | 466 | |
467 | 467 | def new_patterns(self): |
... | ... | @@ -557,16 +557,16 @@ class ImportData(object): |
557 | 557 | self.cache_bfl() |
558 | 558 | tt_table = dict( |
559 | 559 | (( |
560 | - tt.variant.id, | |
561 | - tt.pattern_type.symbol, | |
562 | - tt.inflection_characteristic.symbol, | |
563 | - tt.inflection_characteristic.part_of_speech.symbol, | |
564 | - ), tt) for tt in TableTemplate.objects.all() | |
560 | + tt.variant.id, | |
561 | + tt.pattern_type.symbol, | |
562 | + tt.inflection_characteristic.symbol, | |
563 | + tt.inflection_characteristic.part_of_speech.symbol, | |
564 | + ), tt) for tt in TableTemplate.objects.all() | |
565 | 565 | ) |
566 | 566 | for row in self.sqlite_cursor.execute('SELECT * FROM paradygmaty'): |
567 | 567 | tt = tt_table[ |
568 | 568 | (unicode(row['wariant']), row['typr'], row['charfl'], |
569 | - row['pos'])] | |
569 | + row['pos'])] | |
570 | 570 | if not SQL_MODE: |
571 | 571 | c = Cell( |
572 | 572 | table_template=tt, |
... | ... | @@ -593,16 +593,16 @@ class ImportData(object): |
593 | 593 | "INSERT INTO klatki (st_id, efobaz, tag, prefiks, sufiks, kind) " |
594 | 594 | "VALUES (%s, %s, %s, %s, %s, %s)", |
595 | 595 | [tt.pk, efobaz_id, row['morf'], |
596 | - row['pref'], row['suf'], row['kskl']]) | |
596 | + row['pref'], row['suf'], row['kskl']]) | |
597 | 597 | if row['row']: |
598 | 598 | self.cursor.execute("select currval('klatki_id_seq')") |
599 | 599 | last_id = self.cursor.fetchone()[0] |
600 | 600 | self.cursor.execute( |
601 | 601 | "INSERT INTO komorki_tabel (k_id, row, col, rowspan, colspan) " |
602 | 602 | "VALUES (%s, %s, %s, %s, %s)", [last_id, row['row'], |
603 | - row['col'], | |
604 | - row['rowspan'], | |
605 | - row['colspan']]) | |
603 | + row['col'], | |
604 | + row['rowspan'], | |
605 | + row['colspan']]) | |
606 | 606 | |
607 | 607 | def new_table_headers(self): |
608 | 608 | for row in self.sqlite_cursor.execute('SELECT * FROM naglowkiwierszy'): |
... | ... | @@ -658,7 +658,7 @@ class ImportData(object): |
658 | 658 | bulk_create(BaseFormLabel, self.new_base_form_labels()) |
659 | 659 | print 'importing inflection characteristics...' |
660 | 660 | bulk_create(InflectionCharacteristic, |
661 | - self.new_inflection_characteristics()) | |
661 | + self.new_inflection_characteristics()) | |
662 | 662 | print 'importing vocabularies...' |
663 | 663 | for v in self.new_vocabularies(): |
664 | 664 | v.save() |
... | ... | @@ -679,7 +679,7 @@ class ImportData(object): |
679 | 679 | def import_lexemes(): |
680 | 680 | print 'importing lexemes...' |
681 | 681 | (lexemes, lexeme_assoc, lexeme_cvs, lexeme_quals, |
682 | - lexeme_attrs) = self.new_lexemes() | |
682 | + lexeme_attrs) = self.new_lexemes() | |
683 | 683 | print 'creating...' |
684 | 684 | bulk_create(Lexeme, lexemes) |
685 | 685 | print 'associations...' |
... | ... | @@ -709,7 +709,7 @@ class ImportData(object): |
709 | 709 | bulk_create(LexemeAssociation, self.new_lexeme_associations()) |
710 | 710 | print 'importing cross-reference types...' |
711 | 711 | bulk_create(CrossReferenceType, |
712 | - self.new_cross_reference_types()) | |
712 | + self.new_cross_reference_types()) | |
713 | 713 | print 'importing cross-references...' |
714 | 714 | bulk_create(CrossReference, self.new_cross_references()) |
715 | 715 | print 'copying aspect values to derived lexemes...' |
... | ... |
dictionary/management/commands/import_kipi.py
... | ... | @@ -61,11 +61,11 @@ for pos in ('adj', 'subst'): |
61 | 61 | sure_bfls_sg = tuple( |
62 | 62 | BaseFormLabel.objects.filter( |
63 | 63 | symbol__in=['sg:dat', 'sg:gen', 'sg:inst']).values_list('pk', |
64 | - flat=True)) | |
64 | + flat=True)) | |
65 | 65 | sure_bfls_pl = tuple( |
66 | 66 | BaseFormLabel.objects.filter( |
67 | 67 | symbol__in=['pl:dat', 'pl:inst', 'pl:loc']).values_list('pk', |
68 | - flat=True)) | |
68 | + flat=True)) | |
69 | 69 | |
70 | 70 | |
71 | 71 | def basic_form_endings(lexical_class, ic, basic_form, form_set): |
... | ... | @@ -90,7 +90,7 @@ def basic_form_endings(lexical_class, ic, basic_form, form_set): |
90 | 90 | "(select id from zakonczenia where w_id = wzory.id " |
91 | 91 | "and zak not in %s and efobaz in %s))"], |
92 | 92 | params=[ending_strings, sure_bfls_sg, ending_strings, |
93 | - sure_bfls_pl]) | |
93 | + sure_bfls_pl]) | |
94 | 94 | new_endings = new_endings | endings_part.filter( |
95 | 95 | pattern__in=patterns) |
96 | 96 | return new_endings |
... | ... | @@ -269,7 +269,7 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
269 | 269 | ending_sets = {} |
270 | 270 | for pattern, root in included: |
271 | 271 | ending_sets[pattern] = good_ending_set(lexical_class, ic, |
272 | - pattern, root) | |
272 | + pattern, root) | |
273 | 273 | type, patterns = find_many_patterns( |
274 | 274 | lexical_class, ic, form_set, entry, included, ending_sets) |
275 | 275 | if type != 'many': |
... | ... | @@ -281,18 +281,18 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
281 | 281 | elif type == 'none': |
282 | 282 | including_dict = dict(including) |
283 | 283 | including = [(key, including_dict[key]) for key in |
284 | - filter(including_dict)] | |
284 | + filter(including_dict)] | |
285 | 285 | else: # type == 'match' |
286 | 286 | patterns = filter(patterns) |
287 | 287 | including_dict = dict(including) |
288 | 288 | including = [(key, including_dict[key]) for key in |
289 | - filter(including_dict)] | |
289 | + filter(including_dict)] | |
290 | 290 | included = filter(included) |
291 | 291 | if old_patterns and not patterns: |
292 | 292 | ending_sets = {} |
293 | 293 | for pattern, root in included: |
294 | 294 | ending_sets[pattern] = good_ending_set(lexical_class, ic, |
295 | - pattern, root) | |
295 | + pattern, root) | |
296 | 296 | type, patterns = find_many_patterns( |
297 | 297 | lexical_class, ic, form_set, entry, included, ending_sets) |
298 | 298 | if type == 'none': |
... | ... | @@ -380,7 +380,7 @@ def import_kipi(input_file): |
380 | 380 | if key != last_key: |
381 | 381 | if last_key is not None: |
382 | 382 | process_forms(forms, last_key[0], last_key[1], |
383 | - COMMONNESS[last_key[2]]) | |
383 | + COMMONNESS[last_key[2]]) | |
384 | 384 | last_key = key |
385 | 385 | forms = [] |
386 | 386 | forms.append((form, tag)) |
... | ... |
dictionary/management/commands/import_morfologik.py
... | ... | @@ -69,9 +69,9 @@ def get_basic_endings(lexical_class, parts_of_speech, gender=None): |
69 | 69 | if gender and ending_genders[gender]: |
70 | 70 | ics = ics.filter(symbol__in=ending_genders[gender]) |
71 | 71 | basic_form_labels = ics.values_list('basic_form_label', |
72 | - flat=True).distinct() | |
72 | + flat=True).distinct() | |
73 | 73 | return Ending.objects.filter(base_form_label__pk__in=basic_form_labels, |
74 | - pattern__type__lexical_class=lexical_class) | |
74 | + pattern__type__lexical_class=lexical_class) | |
75 | 75 | |
76 | 76 | |
77 | 77 | basic_form_endings_dict = {} |
... | ... | @@ -148,13 +148,13 @@ def tantum_a_posteriori(form_set, patterns): |
148 | 148 | for pattern, root in patterns: |
149 | 149 | tantum_forms = { |
150 | 150 | 'sg': set(root + e for e in |
151 | - pattern.endings.filter( | |
152 | - base_form_label__symbol__startswith='sg') | |
153 | - .values_list('string', flat=True)), | |
151 | + pattern.endings.filter( | |
152 | + base_form_label__symbol__startswith='sg') | |
153 | + .values_list('string', flat=True)), | |
154 | 154 | 'pl': set(root + e for e in |
155 | - pattern.endings.filter( | |
156 | - base_form_label__symbol__startswith='pl') | |
157 | - .values_list('string', flat=True)), | |
155 | + pattern.endings.filter( | |
156 | + base_form_label__symbol__startswith='pl') | |
157 | + .values_list('string', flat=True)), | |
158 | 158 | } |
159 | 159 | for num in ('sg', 'pl'): |
160 | 160 | if form_set.issubset(tantum_forms[num]): |
... | ... | @@ -202,9 +202,9 @@ def get_extra(lexical_class, forms, **extra): |
202 | 202 | elif lexical_class.symbol == 'adj': |
203 | 203 | all_forms = [form[0] for form in forms] |
204 | 204 | negated = [(form, tag) for (form, tag) in forms |
205 | - if form == 'nie' + all_forms[0]] | |
205 | + if form == 'nie' + all_forms[0]] | |
206 | 206 | negated += [(form, tag) for (form, tag) in forms |
207 | - if form.startswith('nie') and form[4:] in all_forms | |
207 | + if form.startswith('nie') and form[4:] in all_forms | |
208 | 208 | and form != 'nie' + all_forms[0]] |
209 | 209 | return {'negated': negated} |
210 | 210 | elif lexical_class.symbol == 'v': |
... | ... | @@ -215,8 +215,8 @@ def get_extra(lexical_class, forms, **extra): |
215 | 215 | negated_form = (form.startswith(u'nie') and |
216 | 216 | form[len('nie'):] in all_forms) |
217 | 217 | if (':'.join(tag).startswith(tag_prefix) and |
218 | - not (form.endswith(u'ลผe') and tag[1] == 'impt') | |
219 | - and not negated_form): | |
218 | + not (form.endswith(u'ลผe') and tag[1] == 'impt') | |
219 | + and not negated_form): | |
220 | 220 | if form.endswith(end): # ech... |
221 | 221 | base_form = cut_end(form, end) |
222 | 222 | if label == '10': |
... | ... | @@ -315,11 +315,11 @@ def find_minimal_sets(form_set, covered_forms, necessary_patterns, |
315 | 315 | sure_bfls_sg = tuple( |
316 | 316 | BaseFormLabel.objects.filter( |
317 | 317 | symbol__in=['sg:dat', 'sg:gen', 'sg:inst']).values_list('pk', |
318 | - flat=True)) | |
318 | + flat=True)) | |
319 | 319 | sure_bfls_pl = tuple( |
320 | 320 | BaseFormLabel.objects.filter( |
321 | 321 | symbol__in=['pl:dat', 'pl:inst', 'pl:loc']).values_list('pk', |
322 | - flat=True)) | |
322 | + flat=True)) | |
323 | 323 | |
324 | 324 | |
325 | 325 | def basic_form_endings(lexical_class, basic_form, form_set, **extra): |
... | ... | @@ -348,7 +348,7 @@ def basic_form_endings(lexical_class, basic_form, form_set, **extra): |
348 | 348 | "(select id from zakonczenia where w_id = wzory.id " |
349 | 349 | "and zak not in %s and efobaz in %s))"], |
350 | 350 | params=[ending_strings, sure_bfls_sg, ending_strings, |
351 | - sure_bfls_pl]) | |
351 | + sure_bfls_pl]) | |
352 | 352 | new_endings = new_endings | endings_part.filter( |
353 | 353 | pattern__in=patterns) |
354 | 354 | return new_endings |
... | ... | @@ -422,10 +422,10 @@ def find_patterns(lexical_class, forms, **extra): |
422 | 422 | matching_patterns = set() |
423 | 423 | base_forms_changed = False |
424 | 424 | for basic_ending in basic_form_endings(lexical_class, basic_form, form_set, |
425 | - **extra): | |
425 | + **extra): | |
426 | 426 | pattern = basic_ending.pattern |
427 | 427 | if lexical_class.symbol == 'subst' and bad_pattern_subst(pattern, |
428 | - **extra): | |
428 | + **extra): | |
429 | 429 | #print 'odpadล:', pattern |
430 | 430 | continue # olewamy komentarze ลผe formy odrzucone przez charfle? |
431 | 431 | root = basic_form[:len(basic_form) - len(basic_ending.string)] |
... | ... | @@ -447,12 +447,12 @@ def find_patterns(lexical_class, forms, **extra): |
447 | 447 | if form == root + ending.string + end: |
448 | 448 | this_tag = tag |
449 | 449 | break |
450 | - # ech... uwielbiam zgadywaฤ bลฤdy | |
450 | + # ech... uwielbiam zgadywaฤ bลฤdy | |
451 | 451 | if (bfl in ( |
452 | - '4', '5', "6'", '10', '11', '11pg', | |
453 | - '12') and | |
454 | - (this_tag == ('verb', 'irreg') or | |
455 | - this_tag[1] == 'ger')): | |
452 | + '4', '5', "6'", '10', '11', '11pg', | |
453 | + '12') and | |
454 | + (this_tag == ('verb', 'irreg') or | |
455 | + this_tag[1] == 'ger')): | |
456 | 456 | extra_base_forms.append( |
457 | 457 | (root + ending.string, label)) |
458 | 458 | break |
... | ... | @@ -551,7 +551,7 @@ def check_sgjp_v(entry, ic, patterns, base_forms, derived): |
551 | 551 | derived_part = derived_part |
552 | 552 | if derived_part: |
553 | 553 | sgjp_derived[pos] = [der.to_lexeme for der in |
554 | - derived_part] | |
554 | + derived_part] | |
555 | 555 | if derived == set(sgjp_derived): |
556 | 556 | return lexeme, sgjp_derived |
557 | 557 | return False, None |
... | ... | @@ -589,10 +589,10 @@ def check_sgjp(lc_sym, entry, form_set, forms, **extra): |
589 | 589 | if lc_sym == 'subst': |
590 | 590 | if lexeme.lexemeinflectionpattern_set.filter( |
591 | 591 | inflection_characteristic__symbol__in=( |
592 | - 'm1', 'p1')).exists(): | |
592 | + 'm1', 'p1')).exists(): | |
593 | 593 | # depr |
594 | 594 | exceptions = lexeme.all_forms(affixes=False, |
595 | - label_filter=r'^pl:nom$') | |
595 | + label_filter=r'^pl:nom$') | |
596 | 596 | elif lc_sym == 'adj': |
597 | 597 | # -o |
598 | 598 | exceptions = lexeme.all_forms(affixes=False, label_filter=r'^0$') |
... | ... | @@ -619,7 +619,7 @@ def get_negation(lc_sym, lexeme): |
619 | 619 | for n in negations: |
620 | 620 | if n.entry == u'nie' + lexeme.entry: |
621 | 621 | if all(lip.inflection_characteristic.symbol == '0-' |
622 | - for lip in n.lexemeinflectionpattern_set.all()): | |
622 | + for lip in n.lexemeinflectionpattern_set.all()): | |
623 | 623 | good_negation = n |
624 | 624 | return good_negation |
625 | 625 | |
... | ... | @@ -661,7 +661,7 @@ def closest_lexeme_subst(entry, gender, patterns, included=None): |
661 | 661 | break |
662 | 662 | else: |
663 | 663 | good_lexemes.append(lexeme) |
664 | - # najdลuลผsze wspรณlne zakoลczenie | |
664 | + # najdลuลผsze wspรณlne zakoลczenie | |
665 | 665 | best = (-1, None) |
666 | 666 | for lexeme in good_lexemes: |
667 | 667 | common_suffix = 0 |
... | ... | @@ -749,7 +749,7 @@ def get_inflection_characteristic(lc_sym, forms, patterns, **extra): |
749 | 749 | |
750 | 750 | def blacklist_filter(patterns): |
751 | 751 | return [(pattern, root) for (pattern, root) in patterns |
752 | - if pattern.name not in blacklist] | |
752 | + if pattern.name not in blacklist] | |
753 | 753 | |
754 | 754 | |
755 | 755 | def filter_patterns(filter, action_name, type, patterns, included, including, |
... | ... | @@ -775,12 +775,12 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
775 | 775 | elif type == 'none': |
776 | 776 | including_dict = dict(including) |
777 | 777 | including = [(key, including_dict[key]) for key in |
778 | - filter(including_dict)] | |
778 | + filter(including_dict)] | |
779 | 779 | else: # type == 'match' |
780 | 780 | patterns = filter(patterns) |
781 | 781 | including_dict = dict(including) |
782 | 782 | including = [(key, including_dict[key]) for key in |
783 | - filter(including_dict)] | |
783 | + filter(including_dict)] | |
784 | 784 | included = filter(included) |
785 | 785 | if old_patterns and not patterns: |
786 | 786 | ending_sets = {} |
... | ... | @@ -904,7 +904,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
904 | 904 | base_form_label__symbol='pl:nom') |
905 | 905 | other_strings = other_endings.values_list('string', flat=True) |
906 | 906 | nmo_strings = [e.string for e in nmo_endings if |
907 | - e.string not in other_strings] | |
907 | + e.string not in other_strings] | |
908 | 908 | nmo_forms = set(root + s for s in nmo_strings) |
909 | 909 | if nmo_forms & set(form[0] for form in forms): |
910 | 910 | comments.append( |
... | ... | @@ -917,7 +917,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
917 | 917 | else: |
918 | 918 | included_patterns = [pattern for pattern, root in included] |
919 | 919 | l = closest_lexeme_subst(entry, gender, fitting, |
920 | - included_patterns) | |
920 | + included_patterns) | |
921 | 921 | if l: |
922 | 922 | copy_lips = l.lexemeinflectionpattern_set.all() |
923 | 923 | #print l |
... | ... | @@ -928,8 +928,8 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
928 | 928 | else: |
929 | 929 | p = join_many(fitting) |
930 | 930 | debug(entry, |
931 | - u'nie ma pasujฤ cych leksemรณw dla rozszerzenia sgtant ' | |
932 | - u'dla wzorรณw %s' % p) | |
931 | + u'nie ma pasujฤ cych leksemรณw dla rozszerzenia sgtant ' | |
932 | + u'dla wzorรณw %s' % p) | |
933 | 933 | comments.append(u'Nie udaลo siฤ rozszerzyฤ singulare tantum') |
934 | 934 | #status = 'cand' |
935 | 935 | # dodaฤ kwalifikator [po imporcie jednak] |
... | ... | @@ -972,7 +972,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
972 | 972 | elif type2 == 'many': |
973 | 973 | comments.append( |
974 | 974 | u'Pasujฤ ce zestawy wzorรณw: %s' % join_many(patterns2)) |
975 | - # hm? | |
975 | + # hm? | |
976 | 976 | if ic is None and type != 'none': |
977 | 977 | comments.append(u'Dopasowane wzory: %s' % join(patterns)) |
978 | 978 | # zbieramy wzory do porรณwnania [fuj, copypasta!] |
... | ... | @@ -990,7 +990,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
990 | 990 | for p, diff_forms in diff.iteritems(): |
991 | 991 | comments.append( |
992 | 992 | '%s: %s' % ( |
993 | - p.name, ', '.join('%s: %s' % pair for pair in diff_forms))) | |
993 | + p.name, ', '.join('%s: %s' % pair for pair in diff_forms))) | |
994 | 994 | if other_result and len(patterns2) > 1: |
995 | 995 | if type2 != 'many': |
996 | 996 | other_patterns = set(patterns2) |
... | ... | @@ -1003,7 +1003,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
1003 | 1003 | for p, diff_forms in diff.iteritems(): |
1004 | 1004 | comments.append( |
1005 | 1005 | '%s: %s' % ( |
1006 | - p.name, ', '.join('%s: %s' % pair for pair in diff_forms))) | |
1006 | + p.name, ', '.join('%s: %s' % pair for pair in diff_forms))) | |
1007 | 1007 | comment = '\n'.join(comments) |
1008 | 1008 | output = { |
1009 | 1009 | 'lexeme': create_lexeme(entry, part_of_speech, status, comment) |
... | ... | @@ -1019,7 +1019,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
1019 | 1019 | ic = lip.inflection_characteristic.symbol |
1020 | 1020 | lips.append( |
1021 | 1021 | create_lip(lip.pattern, None, lip.index, ic, |
1022 | - part_of_speech)) | |
1022 | + part_of_speech)) | |
1023 | 1023 | output['lips'] = lips |
1024 | 1024 | if lc_sym == 'adj' and negated: |
1025 | 1025 | output['negated'] = True |
... | ... | @@ -1149,7 +1149,7 @@ def process_forms(lexical_class, forms, **extra): |
1149 | 1149 | if lexical_class.symbol == 'subst': |
1150 | 1150 | extra['ic'] = ic |
1151 | 1151 | ic = get_inflection_characteristic(lc_sym, forms, all_patterns, |
1152 | - **extra) | |
1152 | + **extra) | |
1153 | 1153 | if lexical_class.symbol == 'subst': |
1154 | 1154 | del extra['ic'] |
1155 | 1155 | else: |
... | ... | @@ -1250,7 +1250,7 @@ def process_ndm(forms): |
1250 | 1250 | debug(entry, u'nierozpoznane nieodmienne z dwiema formami') |
1251 | 1251 | comments.append(u'nierozpoznane nieodmienne z dwiema formami') |
1252 | 1252 | status = 'cand' |
1253 | - # sprawdziฤ czy to co wyszลo jest juลผ w sgjp | |
1253 | + # sprawdziฤ czy to co wyszลo jest juลผ w sgjp | |
1254 | 1254 | lexemes = Lexeme.objects.distinct().filter(entry=entry) |
1255 | 1255 | lexemes = lexemes.filter(pk__in=sgjp) |
1256 | 1256 | if pos == 'adv': |
... | ... |
dictionary/management/commands/import_resztki.py
... | ... | @@ -6,7 +6,7 @@ from django.core.management.base import BaseCommand |
6 | 6 | |
7 | 7 | from common.util import suffixes, cut_end, debug, GroupDict |
8 | 8 | from dictionary.models import Pattern, Lexeme, InflectionCharacteristic, \ |
9 | - Ending, LexicalClass, BaseFormLabel, Vocabulary | |
9 | + Ending, LexicalClass, BaseFormLabel | |
10 | 10 | from dictionary.pattern_blacklist import blacklist |
11 | 11 | from dictionary.management.commands.import_morfologik import join, join_many, \ |
12 | 12 | relevant_subst, relevant_adj, find_minimal_sets |
... | ... | @@ -33,9 +33,9 @@ def get_basic_endings(parts_of_speech, genders=None): |
33 | 33 | if genders: |
34 | 34 | ics = ics.filter(symbol__in=genders) |
35 | 35 | basic_form_labels = ics.values_list('basic_form_label', |
36 | - flat=True).distinct() | |
36 | + flat=True).distinct() | |
37 | 37 | return Ending.objects.filter(base_form_label__pk__in=basic_form_labels, |
38 | - pattern__type__lexical_class=lexical_class) | |
38 | + pattern__type__lexical_class=lexical_class) | |
39 | 39 | |
40 | 40 | |
41 | 41 | def expand_gender(gender): |
... | ... | @@ -63,13 +63,13 @@ def tantum_a_posteriori(form_set, patterns): |
63 | 63 | for pattern, root in patterns: |
64 | 64 | tantum_forms = { |
65 | 65 | 'sg': set(root + e for e in |
66 | - pattern.endings.filter( | |
67 | - base_form_label__symbol__startswith='sg') | |
68 | - .values_list('string', flat=True)), | |
66 | + pattern.endings.filter( | |
67 | + base_form_label__symbol__startswith='sg') | |
68 | + .values_list('string', flat=True)), | |
69 | 69 | 'pl': set(root + e for e in |
70 | - pattern.endings.filter( | |
71 | - base_form_label__symbol__startswith='pl') | |
72 | - .values_list('string', flat=True)), | |
70 | + pattern.endings.filter( | |
71 | + base_form_label__symbol__startswith='pl') | |
72 | + .values_list('string', flat=True)), | |
73 | 73 | } |
74 | 74 | for num in ('sg', 'pl'): |
75 | 75 | if form_set.issubset(tantum_forms[num]): |
... | ... | @@ -101,11 +101,11 @@ def powerset(iterable): |
101 | 101 | sure_bfls_sg = tuple( |
102 | 102 | BaseFormLabel.objects.filter( |
103 | 103 | symbol__in=['sg:dat', 'sg:gen', 'sg:inst']).values_list('pk', |
104 | - flat=True)) | |
104 | + flat=True)) | |
105 | 105 | sure_bfls_pl = tuple( |
106 | 106 | BaseFormLabel.objects.filter( |
107 | 107 | symbol__in=['pl:dat', 'pl:inst', 'pl:loc']).values_list('pk', |
108 | - flat=True)) | |
108 | + flat=True)) | |
109 | 109 | |
110 | 110 | |
111 | 111 | def basic_form_endings(lexical_class, basic_form, form_set, **extra): |
... | ... | @@ -134,7 +134,7 @@ def basic_form_endings(lexical_class, basic_form, form_set, **extra): |
134 | 134 | "(select id from zakonczenia where w_id = wzory.id " |
135 | 135 | "and zak not in %s and efobaz in %s))"], |
136 | 136 | params=[ending_strings, sure_bfls_sg, ending_strings, |
137 | - sure_bfls_pl]) | |
137 | + sure_bfls_pl]) | |
138 | 138 | new_endings = new_endings | endings_part.filter( |
139 | 139 | pattern__in=patterns) |
140 | 140 | return new_endings |
... | ... | @@ -211,7 +211,7 @@ def find_patterns(lexical_class, basic_form, forms, **extra): |
211 | 211 | lexical_class, basic_form, form_set, **extra): |
212 | 212 | pattern = basic_ending.pattern |
213 | 213 | if lexical_class.symbol == 'subst' and bad_pattern_subst(pattern, |
214 | - **extra): | |
214 | + **extra): | |
215 | 215 | #print 'odpadล:', pattern |
216 | 216 | continue # olewamy komentarze ลผe formy odrzucone przez charfle? |
217 | 217 | root = basic_form[:len(basic_form) - len(basic_ending.string)] |
... | ... | @@ -318,10 +318,10 @@ def check_sgjp(lc_sym, entry, form_set, **extra): |
318 | 318 | if lc_sym == 'subst': |
319 | 319 | if lexeme.lexemeinflectionpattern_set.filter( |
320 | 320 | inflection_characteristic__symbol__in=( |
321 | - 'm1', 'p1')).exists(): | |
321 | + 'm1', 'p1')).exists(): | |
322 | 322 | # depr |
323 | 323 | exceptions = lexeme.all_forms(affixes=False, |
324 | - label_filter=r'^pl:nom$') | |
324 | + label_filter=r'^pl:nom$') | |
325 | 325 | elif lc_sym == 'adj': |
326 | 326 | # -o |
327 | 327 | exceptions = lexeme.all_forms(affixes=False, label_filter=r'^0$') |
... | ... | @@ -377,7 +377,7 @@ def closest_lexeme_subst(entry, gender, patterns, included=None): |
377 | 377 | break |
378 | 378 | else: |
379 | 379 | good_lexemes.append(lexeme) |
380 | - # najdลuลผsze wspรณlne zakoลczenie | |
380 | + # najdลuลผsze wspรณlne zakoลczenie | |
381 | 381 | best = (-1, None) |
382 | 382 | for lexeme in good_lexemes: |
383 | 383 | common_suffix = 0 |
... | ... | @@ -393,7 +393,7 @@ def closest_lexeme_subst(entry, gender, patterns, included=None): |
393 | 393 | |
394 | 394 | def blacklist_filter(patterns): |
395 | 395 | return [(pattern, root) for (pattern, root) in patterns |
396 | - if pattern.name not in blacklist] | |
396 | + if pattern.name not in blacklist] | |
397 | 397 | |
398 | 398 | |
399 | 399 | def filter_patterns(filter, action_name, type, patterns, included, including, |
... | ... | @@ -419,12 +419,12 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
419 | 419 | elif type == 'none': |
420 | 420 | including_dict = dict(including) |
421 | 421 | including = [(key, including_dict[key]) for key in |
422 | - filter(including_dict)] | |
422 | + filter(including_dict)] | |
423 | 423 | else: # type == 'match' |
424 | 424 | patterns = filter(patterns) |
425 | 425 | including_dict = dict(including) |
426 | 426 | including = [(key, including_dict[key]) for key in |
427 | - filter(including_dict)] | |
427 | + filter(including_dict)] | |
428 | 428 | included = filter(included) |
429 | 429 | if old_patterns and not patterns: |
430 | 430 | ending_sets = {} |
... | ... | @@ -548,7 +548,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
548 | 548 | base_form_label__symbol='pl:nom') |
549 | 549 | other_strings = other_endings.values_list('string', flat=True) |
550 | 550 | nmo_strings = [e.string for e in nmo_endings if |
551 | - e.string not in other_strings] | |
551 | + e.string not in other_strings] | |
552 | 552 | nmo_forms = set(root + s for s in nmo_strings) |
553 | 553 | if nmo_forms & set(forms): |
554 | 554 | comments.append( |
... | ... | @@ -561,7 +561,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
561 | 561 | else: |
562 | 562 | included_patterns = [pattern for pattern, root in included] |
563 | 563 | l = closest_lexeme_subst(entry, gender, fitting, |
564 | - included_patterns) | |
564 | + included_patterns) | |
565 | 565 | if l: |
566 | 566 | copy_lips = l.lexemeinflectionpattern_set.all() |
567 | 567 | #print l |
... | ... | @@ -572,8 +572,8 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
572 | 572 | else: |
573 | 573 | p = join_many(fitting) |
574 | 574 | debug(entry, |
575 | - u'nie ma pasujฤ cych leksemรณw dla rozszerzenia sgtant ' | |
576 | - u'dla wzorรณw %s' % p) | |
575 | + u'nie ma pasujฤ cych leksemรณw dla rozszerzenia sgtant ' | |
576 | + u'dla wzorรณw %s' % p) | |
577 | 577 | comments.append(u'Nie udaลo siฤ rozszerzyฤ singulare tantum') |
578 | 578 | #status = 'cand' |
579 | 579 | # dodaฤ kwalifikator [po imporcie jednak] |
... | ... | @@ -634,7 +634,7 @@ def lexeme_creation(lc_sym, entry, ic, forms, type, patterns, fitting, |
634 | 634 | ic = lip.inflection_characteristic.symbol |
635 | 635 | lips.append( |
636 | 636 | create_lip(lip.pattern, None, lip.index, ic, |
637 | - part_of_speech)) | |
637 | + part_of_speech)) | |
638 | 638 | output['lips'] = lips |
639 | 639 | if lc_sym == 'adj' and negated: |
640 | 640 | output['negated'] = True |
... | ... |
dictionary/management/commands/import_sejfek.py
... | ... | @@ -57,11 +57,11 @@ for pos in ('adj', 'subst'): |
57 | 57 | sure_bfls_sg = tuple( |
58 | 58 | BaseFormLabel.objects.filter( |
59 | 59 | symbol__in=['sg:dat', 'sg:gen', 'sg:inst']).values_list('pk', |
60 | - flat=True)) | |
60 | + flat=True)) | |
61 | 61 | sure_bfls_pl = tuple( |
62 | 62 | BaseFormLabel.objects.filter( |
63 | 63 | symbol__in=['pl:dat', 'pl:inst', 'pl:loc']).values_list('pk', |
64 | - flat=True)) | |
64 | + flat=True)) | |
65 | 65 | |
66 | 66 | |
67 | 67 | def basic_form_endings(lexical_class, ic, basic_form, form_set): |
... | ... | @@ -86,7 +86,7 @@ def basic_form_endings(lexical_class, ic, basic_form, form_set): |
86 | 86 | "(select id from zakonczenia where w_id = wzory.id " |
87 | 87 | "and zak not in %s and efobaz in %s))"], |
88 | 88 | params=[ending_strings, sure_bfls_sg, ending_strings, |
89 | - sure_bfls_pl]) | |
89 | + sure_bfls_pl]) | |
90 | 90 | new_endings = new_endings | endings_part.filter( |
91 | 91 | pattern__in=patterns) |
92 | 92 | return new_endings |
... | ... | @@ -265,7 +265,7 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
265 | 265 | ending_sets = {} |
266 | 266 | for pattern, root in included: |
267 | 267 | ending_sets[pattern] = good_ending_set(lexical_class, ic, |
268 | - pattern, root) | |
268 | + pattern, root) | |
269 | 269 | type, patterns = find_many_patterns( |
270 | 270 | lexical_class, ic, form_set, entry, included, ending_sets) |
271 | 271 | if type != 'many': |
... | ... | @@ -277,18 +277,18 @@ def filter_patterns(filter, action_name, type, patterns, included, including, |
277 | 277 | elif type == 'none': |
278 | 278 | including_dict = dict(including) |
279 | 279 | including = [(key, including_dict[key]) for key in |
280 | - filter(including_dict)] | |
280 | + filter(including_dict)] | |
281 | 281 | else: # type == 'match' |
282 | 282 | patterns = filter(patterns) |
283 | 283 | including_dict = dict(including) |
284 | 284 | including = [(key, including_dict[key]) for key in |
285 | - filter(including_dict)] | |
285 | + filter(including_dict)] | |
286 | 286 | included = filter(included) |
287 | 287 | if old_patterns and not patterns: |
288 | 288 | ending_sets = {} |
289 | 289 | for pattern, root in included: |
290 | 290 | ending_sets[pattern] = good_ending_set(lexical_class, ic, |
291 | - pattern, root) | |
291 | + pattern, root) | |
292 | 292 | type, patterns = find_many_patterns( |
293 | 293 | lexical_class, ic, form_set, entry, included, ending_sets) |
294 | 294 | if type == 'none': |
... | ... |
dictionary/management/commands/import_variant.py
... | ... | @@ -20,7 +20,7 @@ def import_variant(variant, input_file): |
20 | 20 | line = line.strip().decode('utf-8') |
21 | 21 | data = line.split('\t') |
22 | 22 | _variant, pos, p_type, ic, row, col, rspan, cspan, bfl, tag, pref, suf, \ |
23 | - index = data | |
23 | + index = data | |
24 | 24 | assert variant == _variant |
25 | 25 | # trochฤ copypasta |
26 | 26 | lc = PartOfSpeech.objects.get(symbol=pos).lexical_class |
... | ... | @@ -28,7 +28,7 @@ def import_variant(variant, input_file): |
28 | 28 | tt_data = { |
29 | 29 | 'variant': v, |
30 | 30 | 'pattern_type': PatternType.objects.get(symbol=p_type, |
31 | - lexical_class=lc), | |
31 | + lexical_class=lc), | |
32 | 32 | 'inflection_characteristic': InflectionCharacteristic.objects.get( |
33 | 33 | symbol=ic, part_of_speech__symbol=pos), |
34 | 34 | } |
... | ... |
dictionary/management/commands/import_warszawa.py
... | ... | @@ -28,8 +28,8 @@ def inflection_characteristic(forms, pos): |
28 | 28 | ic = '' |
29 | 29 | else: |
30 | 30 | ic = '0-' |
31 | - #return InflectionCharacteristic.objects.get( | |
32 | - # symbol=ic, part_of_speech__symbol=pos) | |
31 | + #return InflectionCharacteristic.objects.get( | |
32 | + # symbol=ic, part_of_speech__symbol=pos) | |
33 | 33 | return ic |
34 | 34 | |
35 | 35 | |
... | ... |
dictionary/management/commands/load_import.py
... | ... | @@ -60,8 +60,8 @@ def add_cr(l_from, l_to, symbol): |
60 | 60 | def create_lexeme(entry, part_of_speech, status, comment, commonness=None): |
61 | 61 | global next_id |
62 | 62 | l = Lexeme(id=next_id, entry=entry, part_of_speech=part_of_speech, |
63 | - source=source, status=status, comment=comment, | |
64 | - owner_vocabulary=vocab) | |
63 | + source=source, status=status, comment=comment, | |
64 | + owner_vocabulary=vocab) | |
65 | 65 | l.fix_homonym_number() |
66 | 66 | l.save() |
67 | 67 | if commonness: |
... | ... | @@ -81,8 +81,8 @@ def create_negated(l): |
81 | 81 | else: |
82 | 82 | ic = lip.inflection_characteristic |
83 | 83 | LexemeInflectionPattern(lexeme=lneg, index=lip.index, |
84 | - pattern=lip.pattern, root=u"nie" + lip.root, | |
85 | - inflection_characteristic=ic).save() | |
84 | + pattern=lip.pattern, root=u"nie" + lip.root, | |
85 | + inflection_characteristic=ic).save() | |
86 | 86 | add_cr(l, lneg, "adjnie") |
87 | 87 | add_cr(lneg, l, "nieadj") |
88 | 88 | |
... | ... | @@ -121,9 +121,9 @@ def create_derived(l, pos, entry, patterns): |
121 | 121 | if lip.pattern.name in patterns: |
122 | 122 | ic = lip.inflection_characteristic.symbol.lstrip("q") |
123 | 123 | LexemeInflectionPattern(lexeme=lder, index=lip.index, |
124 | - pattern=lip.pattern, root=lip.root, | |
125 | - inflection_characteristic=ic_table[ | |
126 | - (ic, pos)]).save() | |
124 | + pattern=lip.pattern, root=lip.root, | |
125 | + inflection_characteristic=ic_table[ | |
126 | + (ic, pos)]).save() | |
127 | 127 | add_cr(l, lder, "ver" + pos) |
128 | 128 | add_cr(lder, l, pos + "ver") |
129 | 129 | |
... | ... | @@ -145,9 +145,9 @@ def load_morfologik(filename, vocab_name, source_): |
145 | 145 | elif data['lexeme']['source'] == 'morfologik': |
146 | 146 | l_data = data['lexeme'] |
147 | 147 | l = create_lexeme(l_data['entry'], |
148 | - pos_table[l_data['part_of_speech']], | |
149 | - l_data['status'], l_data['comment'], | |
150 | - l_data.get('commonness')) | |
148 | + pos_table[l_data['part_of_speech']], | |
149 | + l_data['status'], l_data['comment'], | |
150 | + l_data.get('commonness')) | |
151 | 151 | for lip_data in data['lips']: |
152 | 152 | pattern = pattern_table[lip_data['pattern']] |
153 | 153 | ic = ic_table[tuple(lip_data['ic'])] |
... | ... | @@ -156,8 +156,8 @@ def load_morfologik(filename, vocab_name, source_): |
156 | 156 | elif lip_data['root']['type'] == 'compute': |
157 | 157 | root = l.get_root(pattern, ic) |
158 | 158 | LexemeInflectionPattern(lexeme=l, index=lip_data['ind'], |
159 | - pattern=pattern, root=root, | |
160 | - inflection_characteristic=ic).save() | |
159 | + pattern=pattern, root=root, | |
160 | + inflection_characteristic=ic).save() | |
161 | 161 | if 'derived' in data: |
162 | 162 | for pos, entry, patterns in data['derived']: |
163 | 163 | create_derived(l, pos, entry, patterns) |
... | ... |
dictionary/management/commands/uncertain_ppas.py
... | ... | @@ -39,6 +39,6 @@ def list_verbs(): |
39 | 39 | m_der = get_derived(lexeme) |
40 | 40 | s_der = get_derived(hom) |
41 | 41 | if (m_der.issuperset(s_der) and m_der - s_der == {'ppas'} |
42 | - or s_der.issuperset(m_der) and s_der - m_der == {'ppas'}): | |
42 | + or s_der.issuperset(m_der) and s_der - m_der == {'ppas'}): | |
43 | 43 | print lexeme.entry.encode('utf-8'), |
44 | 44 | print lexeme.pk, hom.pk, 'morf' if 'ppas' in m_der else 'sgjp' |
... | ... |
dictionary/migrations/0001_initial.py
... | ... | @@ -6,23 +6,37 @@ from django.db import models |
6 | 6 | |
7 | 7 | |
8 | 8 | class Migration(SchemaMigration): |
9 | - | |
10 | 9 | def forwards(self, orm): |
11 | 10 | # Adding model 'QualifierExclusionClass' |
12 | 11 | db.create_table('klasy_wykluczania', ( |
13 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
14 | - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64, db_column='nazwa')), | |
15 | - ('vocabulary', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Vocabulary'], db_column='slownik')), | |
12 | + ('id', | |
13 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
14 | + ('name', self.gf('django.db.models.fields.CharField')(unique=True, | |
15 | + max_length=64, db_column='nazwa')), | |
16 | + ('vocabulary', | |
17 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
18 | + to=orm['dictionary.Vocabulary'], db_column='slownik')), | |
16 | 19 | )) |
17 | 20 | db.send_create_signal('dictionary', ['QualifierExclusionClass']) |
18 | 21 | |
19 | 22 | # Adding model 'Qualifier' |
20 | 23 | db.create_table('kwalifikatory', ( |
21 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
22 | - ('label', self.gf('django.db.models.fields.CharField')(max_length=64, db_column='kwal')), | |
23 | - ('vocabulary', self.gf('django.db.models.fields.related.ForeignKey')(related_name='qualifiers', db_column='slownik', to=orm['dictionary.Vocabulary'])), | |
24 | - ('exclusion_class', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.QualifierExclusionClass'], null=True, db_column='klasa', blank=True)), | |
25 | - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, db_column='usuniety')), | |
24 | + ('id', | |
25 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
26 | + ('label', | |
27 | + self.gf('django.db.models.fields.CharField')(max_length=64, | |
28 | + db_column='kwal')), | |
29 | + ('vocabulary', | |
30 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
31 | + related_name='qualifiers', db_column='slownik', | |
32 | + to=orm['dictionary.Vocabulary'])), | |
33 | + ('exclusion_class', | |
34 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
35 | + to=orm['dictionary.QualifierExclusionClass'], null=True, | |
36 | + db_column='klasa', blank=True)), | |
37 | + ('deleted', | |
38 | + self.gf('django.db.models.fields.BooleanField')(default=False, | |
39 | + db_column='usuniety')), | |
26 | 40 | )) |
27 | 41 | db.send_create_signal('dictionary', ['Qualifier']) |
28 | 42 | |
... | ... | @@ -31,55 +45,87 @@ class Migration(SchemaMigration): |
31 | 45 | |
32 | 46 | # Adding model 'Classification' |
33 | 47 | db.create_table('klasyfikacje', ( |
34 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
35 | - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64, db_column='nazwa')), | |
48 | + ('id', | |
49 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
50 | + ('name', self.gf('django.db.models.fields.CharField')(unique=True, | |
51 | + max_length=64, db_column='nazwa')), | |
36 | 52 | )) |
37 | 53 | db.send_create_signal('dictionary', ['Classification']) |
38 | 54 | |
39 | 55 | # Adding model 'ClassificationValue' |
40 | 56 | db.create_table('wartosci_klasyfikacji', ( |
41 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
42 | - ('label', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64, db_column='nazwa')), | |
43 | - ('classification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='values', db_column='klas_id', to=orm['dictionary.Classification'])), | |
44 | - ('parent_node', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='child_nodes', null=True, db_column='rodzic', to=orm['dictionary.ClassificationValue'])), | |
45 | - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, db_column='usunieta')), | |
57 | + ('id', | |
58 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
59 | + ('label', self.gf('django.db.models.fields.CharField')(unique=True, | |
60 | + max_length=64, db_column='nazwa')), | |
61 | + ('classification', | |
62 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
63 | + related_name='values', db_column='klas_id', | |
64 | + to=orm['dictionary.Classification'])), | |
65 | + ('parent_node', | |
66 | + self.gf('django.db.models.fields.related.ForeignKey')(blank=True, | |
67 | + related_name='child_nodes', null=True, db_column='rodzic', | |
68 | + to=orm['dictionary.ClassificationValue'])), | |
69 | + ('deleted', | |
70 | + self.gf('django.db.models.fields.BooleanField')(default=False, | |
71 | + db_column='usunieta')), | |
46 | 72 | )) |
47 | 73 | db.send_create_signal('dictionary', ['ClassificationValue']) |
48 | 74 | |
49 | 75 | # Adding M2M table for field lexemes on 'ClassificationValue' |
50 | 76 | db.create_table('wartosci_klasyfikacji_lexemes', ( |
51 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
52 | - ('classificationvalue', models.ForeignKey(orm['dictionary.classificationvalue'], null=False)), | |
77 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
78 | + auto_created=True)), | |
79 | + ('classificationvalue', | |
80 | + models.ForeignKey(orm['dictionary.classificationvalue'], | |
81 | + null=False)), | |
53 | 82 | ('lexeme', models.ForeignKey(orm['dictionary.lexeme'], null=False)) |
54 | 83 | )) |
55 | - db.create_unique('wartosci_klasyfikacji_lexemes', ['classificationvalue_id', 'lexeme_id']) | |
84 | + db.create_unique('wartosci_klasyfikacji_lexemes', | |
85 | + ['classificationvalue_id', 'lexeme_id']) | |
56 | 86 | |
57 | 87 | # Adding model 'LexicalClass' |
58 | 88 | db.create_table('czescimowy', ( |
59 | - ('symbol', self.gf('django.db.models.fields.CharField')(max_length=16, primary_key=True, db_column='czm')), | |
89 | + ('symbol', | |
90 | + self.gf('django.db.models.fields.CharField')(max_length=16, | |
91 | + primary_key=True, db_column='czm')), | |
60 | 92 | )) |
61 | 93 | db.send_create_signal('dictionary', ['LexicalClass']) |
62 | 94 | |
63 | 95 | # Adding model 'PartOfSpeech' |
64 | 96 | db.create_table('klasygramatyczne', ( |
65 | - ('symbol', self.gf('django.db.models.fields.CharField')(max_length=16, primary_key=True, db_column='pos')), | |
66 | - ('lexical_class', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.LexicalClass'], db_column='czm')), | |
97 | + ('symbol', | |
98 | + self.gf('django.db.models.fields.CharField')(max_length=16, | |
99 | + primary_key=True, db_column='pos')), | |
100 | + ('lexical_class', | |
101 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
102 | + to=orm['dictionary.LexicalClass'], db_column='czm')), | |
67 | 103 | )) |
68 | 104 | db.send_create_signal('dictionary', ['PartOfSpeech']) |
69 | 105 | |
70 | 106 | # Adding model 'BaseFormLabel' |
71 | 107 | db.create_table('efobazy', ( |
72 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
73 | - ('entry', self.gf('django.db.models.fields.CharField')(max_length=32, db_column='efobaz', blank=True)), | |
108 | + ('id', | |
109 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
110 | + ('entry', | |
111 | + self.gf('django.db.models.fields.CharField')(max_length=32, | |
112 | + db_column='efobaz', blank=True)), | |
74 | 113 | )) |
75 | 114 | db.send_create_signal('dictionary', ['BaseFormLabel']) |
76 | 115 | |
77 | 116 | # Adding model 'InflectionCharacteristic' |
78 | 117 | db.create_table('charfle', ( |
79 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
80 | - ('entry', self.gf('django.db.models.fields.CharField')(max_length=16, db_column='charfl', blank=True)), | |
81 | - ('part_of_speech', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.PartOfSpeech'], db_column='pos')), | |
82 | - ('basic_form_label', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
118 | + ('id', | |
119 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
120 | + ('entry', | |
121 | + self.gf('django.db.models.fields.CharField')(max_length=16, | |
122 | + db_column='charfl', blank=True)), | |
123 | + ('part_of_speech', | |
124 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
125 | + to=orm['dictionary.PartOfSpeech'], db_column='pos')), | |
126 | + ('basic_form_label', | |
127 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
128 | + to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
83 | 129 | )) |
84 | 130 | db.send_create_signal('dictionary', ['InflectionCharacteristic']) |
85 | 131 | |
... | ... | @@ -88,31 +134,54 @@ class Migration(SchemaMigration): |
88 | 134 | |
89 | 135 | # Adding model 'PatternType' |
90 | 136 | db.create_table('typywzorow', ( |
91 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
92 | - ('lexical_class', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.LexicalClass'], db_column='czm')), | |
93 | - ('entry', self.gf('django.db.models.fields.CharField')(max_length=32, db_column='wtyp', blank=True)), | |
137 | + ('id', | |
138 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
139 | + ('lexical_class', | |
140 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
141 | + to=orm['dictionary.LexicalClass'], db_column='czm')), | |
142 | + ('entry', | |
143 | + self.gf('django.db.models.fields.CharField')(max_length=32, | |
144 | + db_column='wtyp', blank=True)), | |
94 | 145 | )) |
95 | 146 | db.send_create_signal('dictionary', ['PatternType']) |
96 | 147 | |
97 | 148 | # Adding model 'Pattern' |
98 | 149 | db.create_table('wzory', ( |
99 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
100 | - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32, db_column='w_id')), | |
101 | - ('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.PatternType'], db_column='typ')), | |
102 | - ('example', self.gf('django.db.models.fields.CharField')(max_length=64, db_column='przyklad')), | |
103 | - ('basic_form_ending', self.gf('django.db.models.fields.CharField')(max_length=32, db_column='zakp', blank=True)), | |
104 | - ('status', self.gf('django.db.models.fields.CharField')(max_length=8)), | |
105 | - ('comment', self.gf('django.db.models.fields.TextField')(db_column='komentarz', blank=True)), | |
150 | + ('id', | |
151 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
152 | + ('name', self.gf('django.db.models.fields.CharField')(unique=True, | |
153 | + max_length=32, db_column='w_id')), | |
154 | + ('type', self.gf('django.db.models.fields.related.ForeignKey')( | |
155 | + to=orm['dictionary.PatternType'], db_column='typ')), | |
156 | + ('example', | |
157 | + self.gf('django.db.models.fields.CharField')(max_length=64, | |
158 | + db_column='przyklad')), | |
159 | + ('basic_form_ending', | |
160 | + self.gf('django.db.models.fields.CharField')(max_length=32, | |
161 | + db_column='zakp', blank=True)), | |
162 | + ('status', | |
163 | + self.gf('django.db.models.fields.CharField')(max_length=8)), | |
164 | + ('comment', | |
165 | + self.gf('django.db.models.fields.TextField')(db_column='komentarz', | |
166 | + blank=True)), | |
106 | 167 | )) |
107 | 168 | db.send_create_signal('dictionary', ['Pattern']) |
108 | 169 | |
109 | 170 | # Adding model 'Ending' |
110 | 171 | db.create_table('zakonczenia', ( |
111 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
112 | - ('pattern', self.gf('django.db.models.fields.related.ForeignKey')(related_name='endings', db_column='w_id', to=orm['dictionary.Pattern'])), | |
113 | - ('base_form_label', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
114 | - ('index', self.gf('django.db.models.fields.IntegerField')(db_column='zind')), | |
115 | - ('string', self.gf('django.db.models.fields.CharField')(max_length=16, db_column='zak', blank=True)), | |
172 | + ('id', | |
173 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
174 | + ('pattern', self.gf('django.db.models.fields.related.ForeignKey')( | |
175 | + related_name='endings', db_column='w_id', | |
176 | + to=orm['dictionary.Pattern'])), | |
177 | + ('base_form_label', | |
178 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
179 | + to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
180 | + ('index', | |
181 | + self.gf('django.db.models.fields.IntegerField')(db_column='zind')), | |
182 | + ('string', | |
183 | + self.gf('django.db.models.fields.CharField')(max_length=16, | |
184 | + db_column='zak', blank=True)), | |
116 | 185 | )) |
117 | 186 | db.send_create_signal('dictionary', ['Ending']) |
118 | 187 | |
... | ... | @@ -121,46 +190,86 @@ class Migration(SchemaMigration): |
121 | 190 | |
122 | 191 | # Adding M2M table for field qualifiers on 'Ending' |
123 | 192 | db.create_table('kwalifikatory_zakonczen', ( |
124 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
193 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
194 | + auto_created=True)), | |
125 | 195 | ('ending', models.ForeignKey(orm['dictionary.ending'], null=False)), |
126 | - ('qualifier', models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
196 | + ('qualifier', | |
197 | + models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
127 | 198 | )) |
128 | - db.create_unique('kwalifikatory_zakonczen', ['ending_id', 'qualifier_id']) | |
199 | + db.create_unique('kwalifikatory_zakonczen', | |
200 | + ['ending_id', 'qualifier_id']) | |
129 | 201 | |
130 | 202 | # Adding model 'Lexeme' |
131 | 203 | db.create_table('leksemy', ( |
132 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
133 | - ('entry', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=64, db_column='haslo', blank=True)), | |
134 | - ('entry_suffix', self.gf('django.db.models.fields.CharField')(max_length=16, db_column='haslosuf', blank=True)), | |
135 | - ('gloss', self.gf('django.db.models.fields.TextField')(db_column='glosa', blank=True)), | |
136 | - ('homonym_number', self.gf('django.db.models.fields.IntegerField')(db_column='hom')), | |
137 | - ('part_of_speech', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.PartOfSpeech'], db_column='pos')), | |
138 | - ('owner_vocabulary', self.gf('django.db.models.fields.related.ForeignKey')(related_name='owned_lexemes', db_column='slownik', to=orm['dictionary.Vocabulary'])), | |
139 | - ('source', self.gf('django.db.models.fields.CharField')(max_length=32, db_column='zrodlo', blank=True)), | |
140 | - ('status', self.gf('django.db.models.fields.CharField')(max_length=8, db_column='status')), | |
141 | - ('comment', self.gf('django.db.models.fields.TextField')(db_column='komentarz', blank=True)), | |
142 | - ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, db_column='data_modyfikacji', blank=True)), | |
143 | - ('responsible', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, db_column='odpowiedzialny', blank=True)), | |
144 | - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, db_column='usuniety')), | |
204 | + ('id', | |
205 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
206 | + ('entry', | |
207 | + self.gf('django.db.models.fields.CharField')(db_index=True, | |
208 | + max_length=64, db_column='haslo', blank=True)), | |
209 | + ('entry_suffix', | |
210 | + self.gf('django.db.models.fields.CharField')(max_length=16, | |
211 | + db_column='haslosuf', blank=True)), | |
212 | + ('gloss', | |
213 | + self.gf('django.db.models.fields.TextField')(db_column='glosa', | |
214 | + blank=True)), | |
215 | + ('homonym_number', | |
216 | + self.gf('django.db.models.fields.IntegerField')(db_column='hom')), | |
217 | + ('part_of_speech', | |
218 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
219 | + to=orm['dictionary.PartOfSpeech'], db_column='pos')), | |
220 | + ('owner_vocabulary', | |
221 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
222 | + related_name='owned_lexemes', db_column='slownik', | |
223 | + to=orm['dictionary.Vocabulary'])), | |
224 | + ('source', | |
225 | + self.gf('django.db.models.fields.CharField')(max_length=32, | |
226 | + db_column='zrodlo', blank=True)), | |
227 | + ('status', | |
228 | + self.gf('django.db.models.fields.CharField')(max_length=8, | |
229 | + db_column='status')), | |
230 | + ('comment', | |
231 | + self.gf('django.db.models.fields.TextField')(db_column='komentarz', | |
232 | + blank=True)), | |
233 | + ('last_modified', | |
234 | + self.gf('django.db.models.fields.DateTimeField')(auto_now=True, | |
235 | + db_column='data_modyfikacji', blank=True)), | |
236 | + ('responsible', | |
237 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
238 | + to=orm['auth.User'], null=True, db_column='odpowiedzialny', | |
239 | + blank=True)), | |
240 | + ('deleted', | |
241 | + self.gf('django.db.models.fields.BooleanField')(default=False, | |
242 | + db_column='usuniety')), | |
145 | 243 | )) |
146 | 244 | db.send_create_signal('dictionary', ['Lexeme']) |
147 | 245 | |
148 | 246 | # Adding M2M table for field qualifiers on 'Lexeme' |
149 | 247 | db.create_table('kwalifikatory_leksemow', ( |
150 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
248 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
249 | + auto_created=True)), | |
151 | 250 | ('lexeme', models.ForeignKey(orm['dictionary.lexeme'], null=False)), |
152 | - ('qualifier', models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
251 | + ('qualifier', | |
252 | + models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
153 | 253 | )) |
154 | - db.create_unique('kwalifikatory_leksemow', ['lexeme_id', 'qualifier_id']) | |
254 | + db.create_unique('kwalifikatory_leksemow', | |
255 | + ['lexeme_id', 'qualifier_id']) | |
155 | 256 | |
156 | 257 | # Adding model 'LexemeInflectionPattern' |
157 | 258 | db.create_table('odmieniasie', ( |
158 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
159 | - ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Lexeme'], db_column='l_id')), | |
160 | - ('index', self.gf('django.db.models.fields.IntegerField')(db_column='oind')), | |
161 | - ('pattern', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Pattern'], db_column='w_id')), | |
162 | - ('inflection_characteristic', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.InflectionCharacteristic'], db_column='charfl')), | |
163 | - ('root', self.gf('django.db.models.fields.CharField')(max_length=64, db_column='rdzen')), | |
259 | + ('id', | |
260 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
261 | + ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')( | |
262 | + to=orm['dictionary.Lexeme'], db_column='l_id')), | |
263 | + ('index', | |
264 | + self.gf('django.db.models.fields.IntegerField')(db_column='oind')), | |
265 | + ('pattern', self.gf('django.db.models.fields.related.ForeignKey')( | |
266 | + to=orm['dictionary.Pattern'], db_column='w_id')), | |
267 | + ('inflection_characteristic', | |
268 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
269 | + to=orm['dictionary.InflectionCharacteristic'], | |
270 | + db_column='charfl')), | |
271 | + ('root', self.gf('django.db.models.fields.CharField')(max_length=64, | |
272 | + db_column='rdzen')), | |
164 | 273 | )) |
165 | 274 | db.send_create_signal('dictionary', ['LexemeInflectionPattern']) |
166 | 275 | |
... | ... | @@ -169,109 +278,168 @@ class Migration(SchemaMigration): |
169 | 278 | |
170 | 279 | # Adding M2M table for field qualifiers on 'LexemeInflectionPattern' |
171 | 280 | db.create_table('kwalifikatory_odmieniasiow', ( |
172 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
173 | - ('lexemeinflectionpattern', models.ForeignKey(orm['dictionary.lexemeinflectionpattern'], null=False)), | |
174 | - ('qualifier', models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
281 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
282 | + auto_created=True)), | |
283 | + ('lexemeinflectionpattern', | |
284 | + models.ForeignKey(orm['dictionary.lexemeinflectionpattern'], | |
285 | + null=False)), | |
286 | + ('qualifier', | |
287 | + models.ForeignKey(orm['dictionary.qualifier'], null=False)) | |
175 | 288 | )) |
176 | - db.create_unique('kwalifikatory_odmieniasiow', ['lexemeinflectionpattern_id', 'qualifier_id']) | |
289 | + db.create_unique('kwalifikatory_odmieniasiow', | |
290 | + ['lexemeinflectionpattern_id', 'qualifier_id']) | |
177 | 291 | |
178 | 292 | # Adding model 'Vocabulary' |
179 | 293 | db.create_table('slowniki', ( |
180 | - ('id', self.gf('django.db.models.fields.CharField')(max_length=64, primary_key=True, db_column='slownik')), | |
294 | + ('id', self.gf('django.db.models.fields.CharField')(max_length=64, | |
295 | + primary_key=True, db_column='slownik')), | |
181 | 296 | )) |
182 | 297 | db.send_create_signal('dictionary', ['Vocabulary']) |
183 | 298 | |
184 | 299 | # Adding M2M table for field managers on 'Vocabulary' |
185 | 300 | db.create_table('slowniki_managers', ( |
186 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
187 | - ('vocabulary', models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
301 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
302 | + auto_created=True)), | |
303 | + ('vocabulary', | |
304 | + models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
188 | 305 | ('user', models.ForeignKey(orm['auth.user'], null=False)) |
189 | 306 | )) |
190 | 307 | db.create_unique('slowniki_managers', ['vocabulary_id', 'user_id']) |
191 | 308 | |
192 | 309 | # Adding M2M table for field viewers on 'Vocabulary' |
193 | 310 | db.create_table('slowniki_viewers', ( |
194 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
195 | - ('vocabulary', models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
311 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
312 | + auto_created=True)), | |
313 | + ('vocabulary', | |
314 | + models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
196 | 315 | ('user', models.ForeignKey(orm['auth.user'], null=False)) |
197 | 316 | )) |
198 | 317 | db.create_unique('slowniki_viewers', ['vocabulary_id', 'user_id']) |
199 | 318 | |
200 | 319 | # Adding M2M table for field editors on 'Vocabulary' |
201 | 320 | db.create_table('slowniki_editors', ( |
202 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
203 | - ('vocabulary', models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
321 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
322 | + auto_created=True)), | |
323 | + ('vocabulary', | |
324 | + models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
204 | 325 | ('user', models.ForeignKey(orm['auth.user'], null=False)) |
205 | 326 | )) |
206 | 327 | db.create_unique('slowniki_editors', ['vocabulary_id', 'user_id']) |
207 | 328 | |
208 | 329 | # Adding M2M table for field classifications on 'Vocabulary' |
209 | 330 | db.create_table('slowniki_classifications', ( |
210 | - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), | |
211 | - ('vocabulary', models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
212 | - ('classification', models.ForeignKey(orm['dictionary.classification'], null=False)) | |
331 | + ('id', models.AutoField(verbose_name='ID', primary_key=True, | |
332 | + auto_created=True)), | |
333 | + ('vocabulary', | |
334 | + models.ForeignKey(orm['dictionary.vocabulary'], null=False)), | |
335 | + ('classification', | |
336 | + models.ForeignKey(orm['dictionary.classification'], null=False)) | |
213 | 337 | )) |
214 | - db.create_unique('slowniki_classifications', ['vocabulary_id', 'classification_id']) | |
338 | + db.create_unique('slowniki_classifications', | |
339 | + ['vocabulary_id', 'classification_id']) | |
215 | 340 | |
216 | 341 | # Adding model 'LexemeAssociation' |
217 | 342 | db.create_table('leksemy_w_slownikach', ( |
218 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
219 | - ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Lexeme'], db_column='l_id')), | |
220 | - ('vocabulary', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Vocabulary'], db_column='slownik')), | |
343 | + ('id', | |
344 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
345 | + ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')( | |
346 | + to=orm['dictionary.Lexeme'], db_column='l_id')), | |
347 | + ('vocabulary', | |
348 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
349 | + to=orm['dictionary.Vocabulary'], db_column='slownik')), | |
221 | 350 | )) |
222 | 351 | db.send_create_signal('dictionary', ['LexemeAssociation']) |
223 | 352 | |
224 | 353 | # Adding model 'CrossReferenceType' |
225 | 354 | db.create_table('typyodsylaczy', ( |
226 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
227 | - ('symbol', self.gf('django.db.models.fields.CharField')(max_length=10, db_column='typods')), | |
228 | - ('desc', self.gf('django.db.models.fields.CharField')(max_length=40, db_column='naglowek')), | |
229 | - ('index', self.gf('django.db.models.fields.IntegerField')(db_column='kolejnosc')), | |
230 | - ('from_pos', self.gf('django.db.models.fields.related.ForeignKey')(related_name='crtype_to', db_column='pos1', to=orm['dictionary.PartOfSpeech'])), | |
231 | - ('to_pos', self.gf('django.db.models.fields.related.ForeignKey')(related_name='crtype_from', db_column='pos2', to=orm['dictionary.PartOfSpeech'])), | |
355 | + ('id', | |
356 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
357 | + ('symbol', | |
358 | + self.gf('django.db.models.fields.CharField')(max_length=10, | |
359 | + db_column='typods')), | |
360 | + ('desc', self.gf('django.db.models.fields.CharField')(max_length=40, | |
361 | + db_column='naglowek')), | |
362 | + ('index', self.gf('django.db.models.fields.IntegerField')( | |
363 | + db_column='kolejnosc')), | |
364 | + ('from_pos', self.gf('django.db.models.fields.related.ForeignKey')( | |
365 | + related_name='crtype_to', db_column='pos1', | |
366 | + to=orm['dictionary.PartOfSpeech'])), | |
367 | + ('to_pos', self.gf('django.db.models.fields.related.ForeignKey')( | |
368 | + related_name='crtype_from', db_column='pos2', | |
369 | + to=orm['dictionary.PartOfSpeech'])), | |
232 | 370 | )) |
233 | 371 | db.send_create_signal('dictionary', ['CrossReferenceType']) |
234 | 372 | |
235 | 373 | # Adding model 'CrossReference' |
236 | 374 | db.create_table('odsylacze', ( |
237 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
238 | - ('from_lexeme', self.gf('django.db.models.fields.related.ForeignKey')(related_name='refs_to', db_column='l_id_od', to=orm['dictionary.Lexeme'])), | |
239 | - ('to_lexeme', self.gf('django.db.models.fields.related.ForeignKey')(related_name='refs_from', db_column='l_id_do', to=orm['dictionary.Lexeme'])), | |
240 | - ('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.CrossReferenceType'], db_column='typods_id')), | |
375 | + ('id', | |
376 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
377 | + ('from_lexeme', | |
378 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
379 | + related_name='refs_to', db_column='l_id_od', | |
380 | + to=orm['dictionary.Lexeme'])), | |
381 | + ('to_lexeme', self.gf('django.db.models.fields.related.ForeignKey')( | |
382 | + related_name='refs_from', db_column='l_id_do', | |
383 | + to=orm['dictionary.Lexeme'])), | |
384 | + ('type', self.gf('django.db.models.fields.related.ForeignKey')( | |
385 | + to=orm['dictionary.CrossReferenceType'], | |
386 | + db_column='typods_id')), | |
241 | 387 | )) |
242 | 388 | db.send_create_signal('dictionary', ['CrossReference']) |
243 | 389 | |
244 | 390 | # Adding model 'Variant' |
245 | 391 | db.create_table('warianty', ( |
246 | - ('id', self.gf('django.db.models.fields.CharField')(max_length=32, primary_key=True, db_column='wariant')), | |
392 | + ('id', self.gf('django.db.models.fields.CharField')(max_length=32, | |
393 | + primary_key=True, db_column='wariant')), | |
247 | 394 | )) |
248 | 395 | db.send_create_signal('dictionary', ['Variant']) |
249 | 396 | |
250 | 397 | # Adding model 'TableTemplate' |
251 | 398 | db.create_table('szablony_tabel', ( |
252 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
253 | - ('variant', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Variant'], db_column='wariant')), | |
254 | - ('pattern_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.PatternType'], db_column='wtyp')), | |
255 | - ('inflection_characteristic', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.InflectionCharacteristic'], db_column='charfl')), | |
399 | + ('id', | |
400 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
401 | + ('variant', self.gf('django.db.models.fields.related.ForeignKey')( | |
402 | + to=orm['dictionary.Variant'], db_column='wariant')), | |
403 | + ('pattern_type', | |
404 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
405 | + to=orm['dictionary.PatternType'], db_column='wtyp')), | |
406 | + ('inflection_characteristic', | |
407 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
408 | + to=orm['dictionary.InflectionCharacteristic'], | |
409 | + db_column='charfl')), | |
256 | 410 | )) |
257 | 411 | db.send_create_signal('dictionary', ['TableTemplate']) |
258 | 412 | |
259 | 413 | # Adding model 'Cell' |
260 | 414 | db.create_table('klatki', ( |
261 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
262 | - ('table_template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.TableTemplate'], db_column='st_id')), | |
263 | - ('base_form_label', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
264 | - ('tag', self.gf('django.db.models.fields.TextField')(db_column='tag', blank=True)), | |
265 | - ('prefix', self.gf('django.db.models.fields.CharField')(max_length=20, db_column='prefiks', blank=True)), | |
266 | - ('suffix', self.gf('django.db.models.fields.CharField')(max_length=20, db_column='sufiks', blank=True)), | |
267 | - ('index', self.gf('django.db.models.fields.IntegerField')(db_column='kind')), | |
415 | + ('id', | |
416 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
417 | + ('table_template', | |
418 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
419 | + to=orm['dictionary.TableTemplate'], db_column='st_id')), | |
420 | + ('base_form_label', | |
421 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
422 | + to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
423 | + ('tag', | |
424 | + self.gf('django.db.models.fields.TextField')(db_column='tag', | |
425 | + blank=True)), | |
426 | + ('prefix', | |
427 | + self.gf('django.db.models.fields.CharField')(max_length=20, | |
428 | + db_column='prefiks', blank=True)), | |
429 | + ('suffix', | |
430 | + self.gf('django.db.models.fields.CharField')(max_length=20, | |
431 | + db_column='sufiks', blank=True)), | |
432 | + ('index', | |
433 | + self.gf('django.db.models.fields.IntegerField')(db_column='kind')), | |
268 | 434 | )) |
269 | 435 | db.send_create_signal('dictionary', ['Cell']) |
270 | 436 | |
271 | 437 | # Adding model 'TableCell' |
272 | 438 | db.create_table('komorki_tabel', ( |
273 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
274 | - ('cell', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['dictionary.Cell'], unique=True, db_column='k_id')), | |
439 | + ('id', | |
440 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
441 | + ('cell', self.gf('django.db.models.fields.related.OneToOneField')( | |
442 | + to=orm['dictionary.Cell'], unique=True, db_column='k_id')), | |
275 | 443 | ('row', self.gf('django.db.models.fields.IntegerField')()), |
276 | 444 | ('col', self.gf('django.db.models.fields.IntegerField')()), |
277 | 445 | ('rowspan', self.gf('django.db.models.fields.IntegerField')()), |
... | ... | @@ -281,51 +449,77 @@ class Migration(SchemaMigration): |
281 | 449 | |
282 | 450 | # Adding model 'TableHeader' |
283 | 451 | db.create_table('naglowki_tabel', ( |
284 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
285 | - ('table_template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.TableTemplate'], db_column='st_id')), | |
452 | + ('id', | |
453 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
454 | + ('table_template', | |
455 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
456 | + to=orm['dictionary.TableTemplate'], db_column='st_id')), | |
286 | 457 | ('row', self.gf('django.db.models.fields.IntegerField')()), |
287 | 458 | ('col', self.gf('django.db.models.fields.IntegerField')()), |
288 | 459 | ('rowspan', self.gf('django.db.models.fields.IntegerField')()), |
289 | 460 | ('colspan', self.gf('django.db.models.fields.IntegerField')()), |
290 | - ('label', self.gf('django.db.models.fields.CharField')(max_length=64, db_column='nagl', blank=True)), | |
291 | - ('row_header', self.gf('django.db.models.fields.BooleanField')(default=False, db_column='wierszowy')), | |
461 | + ('label', | |
462 | + self.gf('django.db.models.fields.CharField')(max_length=64, | |
463 | + db_column='nagl', blank=True)), | |
464 | + ('row_header', | |
465 | + self.gf('django.db.models.fields.BooleanField')(default=False, | |
466 | + db_column='wierszowy')), | |
292 | 467 | )) |
293 | 468 | db.send_create_signal('dictionary', ['TableHeader']) |
294 | 469 | |
295 | 470 | # Adding model 'ParadygmatyWSJP' |
296 | 471 | db.create_table('paradygmatywsjp', ( |
297 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
298 | - ('wariant', self.gf('django.db.models.fields.CharField')(max_length=4)), | |
299 | - ('typr', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.PatternType'], db_column='typr')), | |
300 | - ('charfl', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.InflectionCharacteristic'], db_column='charfl')), | |
301 | - ('podparad', self.gf('django.db.models.fields.CharField')(max_length=4, blank=True)), | |
472 | + ('id', | |
473 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
474 | + ('wariant', | |
475 | + self.gf('django.db.models.fields.CharField')(max_length=4)), | |
476 | + ('typr', self.gf('django.db.models.fields.related.ForeignKey')( | |
477 | + to=orm['dictionary.PatternType'], db_column='typr')), | |
478 | + ('charfl', self.gf('django.db.models.fields.related.ForeignKey')( | |
479 | + to=orm['dictionary.InflectionCharacteristic'], | |
480 | + db_column='charfl')), | |
481 | + ('podparad', | |
482 | + self.gf('django.db.models.fields.CharField')(max_length=4, | |
483 | + blank=True)), | |
302 | 484 | ('row', self.gf('django.db.models.fields.IntegerField')()), |
303 | 485 | ('col', self.gf('django.db.models.fields.IntegerField')()), |
304 | 486 | ('rowspan', self.gf('django.db.models.fields.IntegerField')()), |
305 | 487 | ('colspan', self.gf('django.db.models.fields.IntegerField')()), |
306 | - ('efobaz', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
488 | + ('efobaz', self.gf('django.db.models.fields.related.ForeignKey')( | |
489 | + to=orm['dictionary.BaseFormLabel'], db_column='efobaz')), | |
307 | 490 | ('morf', self.gf('django.db.models.fields.TextField')()), |
308 | - ('pref', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), | |
309 | - ('suf', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), | |
491 | + ('pref', self.gf('django.db.models.fields.CharField')(max_length=20, | |
492 | + blank=True)), | |
493 | + ('suf', self.gf('django.db.models.fields.CharField')(max_length=20, | |
494 | + blank=True)), | |
310 | 495 | ('kskl', self.gf('django.db.models.fields.IntegerField')()), |
311 | 496 | )) |
312 | 497 | db.send_create_signal('dictionary', ['ParadygmatyWSJP']) |
313 | 498 | |
314 | 499 | # Adding model 'LexemeForm' |
315 | 500 | db.create_table('dictionary_lexemeform', ( |
316 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
317 | - ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Lexeme'])), | |
318 | - ('form', self.gf('django.db.models.fields.CharField')(max_length=128, db_index=True)), | |
501 | + ('id', | |
502 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
503 | + ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')( | |
504 | + to=orm['dictionary.Lexeme'])), | |
505 | + ('form', | |
506 | + self.gf('django.db.models.fields.CharField')(max_length=128, | |
507 | + db_index=True)), | |
319 | 508 | )) |
320 | 509 | db.send_create_signal('dictionary', ['LexemeForm']) |
321 | 510 | |
322 | 511 | # Adding model 'SavedFilter' |
323 | 512 | db.create_table('dictionary_savedfilter', ( |
324 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
325 | - ('serialized_filter', self.gf('django.db.models.fields.TextField')()), | |
326 | - ('name', self.gf('django.db.models.fields.CharField')(max_length=64)), | |
327 | - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), | |
328 | - ('super', self.gf('django.db.models.fields.BooleanField')(default=False)), | |
513 | + ('id', | |
514 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
515 | + ('serialized_filter', | |
516 | + self.gf('django.db.models.fields.TextField')()), | |
517 | + ('name', | |
518 | + self.gf('django.db.models.fields.CharField')(max_length=64)), | |
519 | + ('user', self.gf('django.db.models.fields.related.ForeignKey')( | |
520 | + to=orm['auth.User'])), | |
521 | + ('super', | |
522 | + self.gf('django.db.models.fields.BooleanField')(default=False)), | |
329 | 523 | )) |
330 | 524 | db.send_create_signal('dictionary', ['SavedFilter']) |
331 | 525 | |
... | ... | @@ -334,43 +528,74 @@ class Migration(SchemaMigration): |
334 | 528 | |
335 | 529 | # Adding model 'SavedExportData' |
336 | 530 | db.create_table('dictionary_savedexportdata', ( |
337 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
531 | + ('id', | |
532 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
338 | 533 | ('serialized_data', self.gf('django.db.models.fields.TextField')()), |
339 | - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64)), | |
534 | + ('name', self.gf('django.db.models.fields.CharField')(unique=True, | |
535 | + max_length=64)), | |
340 | 536 | )) |
341 | 537 | db.send_create_signal('dictionary', ['SavedExportData']) |
342 | 538 | |
343 | 539 | # Adding model 'History' |
344 | 540 | db.create_table('history', ( |
345 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
346 | - ('table_name', self.gf('django.db.models.fields.CharField')(max_length=120, db_column='table_name_')), | |
347 | - ('column_name', self.gf('django.db.models.fields.CharField')(max_length=120, db_column='column_name_', blank=True)), | |
348 | - ('timestamp', self.gf('django.db.models.fields.DateTimeField')(db_column='timestamp_')), | |
349 | - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], db_column='user_id_')), | |
350 | - ('old_value', self.gf('django.db.models.fields.TextField')(db_column='old_value_', blank=True)), | |
351 | - ('new_value', self.gf('django.db.models.fields.TextField')(db_column='new_value_', blank=True)), | |
352 | - ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Lexeme'], null=True, db_column='lexeme_id_', blank=True)), | |
353 | - ('pattern', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.Pattern'], null=True, db_column='pattern_id_', blank=True)), | |
354 | - ('row_id', self.gf('django.db.models.fields.IntegerField')(db_column='id_')), | |
355 | - ('operation', self.gf('django.db.models.fields.CharField')(max_length=120, db_column='operation_')), | |
356 | - ('table_oid', self.gf('django.db.models.fields.IntegerField')(db_column='table_oid_')), | |
357 | - ('column_ord', self.gf('django.db.models.fields.IntegerField')(db_column='ordinal_position_of_column_')), | |
358 | - ('transaction_began', self.gf('django.db.models.fields.DateTimeField')(db_column='transaction_began_')), | |
541 | + ('id', | |
542 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
543 | + ('table_name', | |
544 | + self.gf('django.db.models.fields.CharField')(max_length=120, | |
545 | + db_column='table_name_')), | |
546 | + ('column_name', | |
547 | + self.gf('django.db.models.fields.CharField')(max_length=120, | |
548 | + db_column='column_name_', blank=True)), | |
549 | + ('timestamp', self.gf('django.db.models.fields.DateTimeField')( | |
550 | + db_column='timestamp_')), | |
551 | + ('user', self.gf('django.db.models.fields.related.ForeignKey')( | |
552 | + to=orm['auth.User'], db_column='user_id_')), | |
553 | + ('old_value', | |
554 | + self.gf('django.db.models.fields.TextField')(db_column='old_value_', | |
555 | + blank=True)), | |
556 | + ('new_value', | |
557 | + self.gf('django.db.models.fields.TextField')(db_column='new_value_', | |
558 | + blank=True)), | |
559 | + ('lexeme', self.gf('django.db.models.fields.related.ForeignKey')( | |
560 | + to=orm['dictionary.Lexeme'], null=True, db_column='lexeme_id_', | |
561 | + blank=True)), | |
562 | + ('pattern', self.gf('django.db.models.fields.related.ForeignKey')( | |
563 | + to=orm['dictionary.Pattern'], null=True, | |
564 | + db_column='pattern_id_', blank=True)), | |
565 | + ('row_id', | |
566 | + self.gf('django.db.models.fields.IntegerField')(db_column='id_')), | |
567 | + ('operation', | |
568 | + self.gf('django.db.models.fields.CharField')(max_length=120, | |
569 | + db_column='operation_')), | |
570 | + ('table_oid', self.gf('django.db.models.fields.IntegerField')( | |
571 | + db_column='table_oid_')), | |
572 | + ('column_ord', self.gf('django.db.models.fields.IntegerField')( | |
573 | + db_column='ordinal_position_of_column_')), | |
574 | + ('transaction_began', | |
575 | + self.gf('django.db.models.fields.DateTimeField')( | |
576 | + db_column='transaction_began_')), | |
359 | 577 | )) |
360 | 578 | db.send_create_signal('dictionary', ['History']) |
361 | 579 | |
362 | 580 | # Adding model 'InputLexeme' |
363 | 581 | db.create_table('dictionary_inputlexeme', ( |
364 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
365 | - ('entry', self.gf('django.db.models.fields.CharField')(max_length=64, db_index=True)), | |
582 | + ('id', | |
583 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
584 | + ('entry', | |
585 | + self.gf('django.db.models.fields.CharField')(max_length=64, | |
586 | + db_index=True)), | |
366 | 587 | )) |
367 | 588 | db.send_create_signal('dictionary', ['InputLexeme']) |
368 | 589 | |
369 | 590 | # Adding model 'InputForm' |
370 | 591 | db.create_table('dictionary_inputform', ( |
371 | - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
372 | - ('input_lexeme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dictionary.InputLexeme'])), | |
373 | - ('form', self.gf('django.db.models.fields.CharField')(max_length=64, db_index=True)), | |
592 | + ('id', | |
593 | + self.gf('django.db.models.fields.AutoField')(primary_key=True)), | |
594 | + ('input_lexeme', | |
595 | + self.gf('django.db.models.fields.related.ForeignKey')( | |
596 | + to=orm['dictionary.InputLexeme'])), | |
597 | + ('form', self.gf('django.db.models.fields.CharField')(max_length=64, | |
598 | + db_index=True)), | |
374 | 599 | )) |
375 | 600 | db.send_create_signal('dictionary', ['InputForm']) |
376 | 601 | |
... | ... | @@ -506,278 +731,516 @@ class Migration(SchemaMigration): |
506 | 731 | models = { |
507 | 732 | 'auth.group': { |
508 | 733 | 'Meta': {'object_name': 'Group'}, |
509 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
510 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), | |
511 | - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
734 | + 'id': ( | |
735 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
736 | + 'name': ('django.db.models.fields.CharField', [], | |
737 | + {'unique': 'True', 'max_length': '80'}), | |
738 | + 'permissions': ( | |
739 | + 'django.db.models.fields.related.ManyToManyField', [], | |
740 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
741 | + 'blank': 'True'}) | |
512 | 742 | }, |
513 | 743 | 'auth.permission': { |
514 | - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, | |
515 | - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
516 | - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), | |
517 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
518 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
744 | + 'Meta': { | |
745 | + 'ordering': "('content_type__app_label', 'content_type__model', 'codename')", | |
746 | + 'unique_together': "(('content_type', 'codename'),)", | |
747 | + 'object_name': 'Permission'}, | |
748 | + 'codename': ( | |
749 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
750 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], | |
751 | + {'to': "orm['contenttypes.ContentType']"}), | |
752 | + 'id': ( | |
753 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
754 | + 'name': ( | |
755 | + 'django.db.models.fields.CharField', [], {'max_length': '50'}) | |
519 | 756 | }, |
520 | 757 | 'auth.user': { |
521 | 758 | 'Meta': {'object_name': 'User'}, |
522 | - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
523 | - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), | |
524 | - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
525 | - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | |
526 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
527 | - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
528 | - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
529 | - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
530 | - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), | |
531 | - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | |
532 | - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | |
533 | - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | |
534 | - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
759 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], | |
760 | + {'default': 'datetime.datetime.now'}), | |
761 | + 'email': ('django.db.models.fields.EmailField', [], | |
762 | + {'max_length': '75', 'blank': 'True'}), | |
763 | + 'first_name': ('django.db.models.fields.CharField', [], | |
764 | + {'max_length': '30', 'blank': 'True'}), | |
765 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], | |
766 | + {'to': "orm['auth.Group']", 'symmetrical': 'False', | |
767 | + 'blank': 'True'}), | |
768 | + 'id': ( | |
769 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
770 | + 'is_active': ( | |
771 | + 'django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
772 | + 'is_staff': ( | |
773 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
774 | + 'is_superuser': ( | |
775 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
776 | + 'last_login': ('django.db.models.fields.DateTimeField', [], | |
777 | + {'default': 'datetime.datetime.now'}), | |
778 | + 'last_name': ('django.db.models.fields.CharField', [], | |
779 | + {'max_length': '30', 'blank': 'True'}), | |
780 | + 'password': ( | |
781 | + 'django.db.models.fields.CharField', [], {'max_length': '128'}), | |
782 | + 'user_permissions': ( | |
783 | + 'django.db.models.fields.related.ManyToManyField', [], | |
784 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
785 | + 'blank': 'True'}), | |
786 | + 'username': ('django.db.models.fields.CharField', [], | |
787 | + {'unique': 'True', 'max_length': '30'}) | |
535 | 788 | }, |
536 | 789 | 'contenttypes.contenttype': { |
537 | - 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
538 | - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
539 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
540 | - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
541 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) | |
790 | + 'Meta': {'ordering': "('name',)", | |
791 | + 'unique_together': "(('app_label', 'model'),)", | |
792 | + 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
793 | + 'app_label': ( | |
794 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
795 | + 'id': ( | |
796 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
797 | + 'model': ( | |
798 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
799 | + 'name': ( | |
800 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}) | |
542 | 801 | }, |
543 | 802 | 'dictionary.baseformlabel': { |
544 | 803 | 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, |
545 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
546 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
804 | + 'entry': ('django.db.models.fields.CharField', [], | |
805 | + {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
806 | + 'id': ( | |
807 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
547 | 808 | }, |
548 | 809 | 'dictionary.cell': { |
549 | - 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"}, | |
550 | - 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
551 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
552 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kind'"}), | |
553 | - 'prefix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
554 | - 'suffix': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
555 | - 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
556 | - 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'}) | |
810 | + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', | |
811 | + 'db_table': "'klatki'"}, | |
812 | + 'base_form_label': ( | |
813 | + 'django.db.models.fields.related.ForeignKey', [], | |
814 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
815 | + 'id': ( | |
816 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
817 | + 'index': ('django.db.models.fields.IntegerField', [], | |
818 | + {'db_column': "'kind'"}), | |
819 | + 'prefix': ('django.db.models.fields.CharField', [], | |
820 | + {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
821 | + 'suffix': ('django.db.models.fields.CharField', [], | |
822 | + {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
823 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
824 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
825 | + 'tag': ('django.db.models.fields.TextField', [], | |
826 | + {'db_column': "'tag'", 'blank': 'True'}) | |
557 | 827 | }, |
558 | 828 | 'dictionary.classification': { |
559 | - 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
560 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
561 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
829 | + 'Meta': {'object_name': 'Classification', | |
830 | + 'db_table': "'klasyfikacje'"}, | |
831 | + 'id': ( | |
832 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
833 | + 'name': ('django.db.models.fields.CharField', [], | |
834 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
562 | 835 | }, |
563 | 836 | 'dictionary.classificationvalue': { |
564 | - 'Meta': {'object_name': 'ClassificationValue', 'db_table': "'wartosci_klasyfikacji'"}, | |
565 | - 'classification': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'values'", 'db_column': "'klas_id'", 'to': "orm['dictionary.Classification']"}), | |
566 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
567 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
568 | - 'label': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
569 | - 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Lexeme']", 'symmetrical': 'False', 'blank': 'True'}), | |
570 | - 'parent_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', 'db_column': "'rodzic'", 'to': "orm['dictionary.ClassificationValue']"}) | |
837 | + 'Meta': {'object_name': 'ClassificationValue', | |
838 | + 'db_table': "'wartosci_klasyfikacji'"}, | |
839 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], | |
840 | + {'related_name': "'values'", 'db_column': "'klas_id'", | |
841 | + 'to': "orm['dictionary.Classification']"}), | |
842 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
843 | + {'default': 'False', 'db_column': "'usunieta'"}), | |
844 | + 'id': ( | |
845 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
846 | + 'label': ('django.db.models.fields.CharField', [], | |
847 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
848 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
849 | + {'to': "orm['dictionary.Lexeme']", 'symmetrical': 'False', | |
850 | + 'blank': 'True'}), | |
851 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], | |
852 | + {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', | |
853 | + 'db_column': "'rodzic'", | |
854 | + 'to': "orm['dictionary.ClassificationValue']"}) | |
571 | 855 | }, |
572 | 856 | 'dictionary.crossreference': { |
573 | - 'Meta': {'object_name': 'CrossReference', 'db_table': "'odsylacze'"}, | |
574 | - 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_to'", 'db_column': "'l_id_od'", 'to': "orm['dictionary.Lexeme']"}), | |
575 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
576 | - 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'refs_from'", 'db_column': "'l_id_do'", 'to': "orm['dictionary.Lexeme']"}), | |
577 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
857 | + 'Meta': {'object_name': 'CrossReference', | |
858 | + 'db_table': "'odsylacze'"}, | |
859 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
860 | + {'related_name': "'refs_to'", 'db_column': "'l_id_od'", | |
861 | + 'to': "orm['dictionary.Lexeme']"}), | |
862 | + 'id': ( | |
863 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
864 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
865 | + {'related_name': "'refs_from'", 'db_column': "'l_id_do'", | |
866 | + 'to': "orm['dictionary.Lexeme']"}), | |
867 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
868 | + {'to': "orm['dictionary.CrossReferenceType']", | |
869 | + 'db_column': "'typods_id'"}) | |
578 | 870 | }, |
579 | 871 | 'dictionary.crossreferencetype': { |
580 | - 'Meta': {'object_name': 'CrossReferenceType', 'db_table': "'typyodsylaczy'"}, | |
581 | - 'desc': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_column': "'naglowek'"}), | |
582 | - 'from_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_to'", 'db_column': "'pos1'", 'to': "orm['dictionary.PartOfSpeech']"}), | |
583 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
584 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'kolejnosc'"}), | |
585 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '10', 'db_column': "'typods'"}), | |
586 | - 'to_pos': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crtype_from'", 'db_column': "'pos2'", 'to': "orm['dictionary.PartOfSpeech']"}) | |
872 | + 'Meta': {'object_name': 'CrossReferenceType', | |
873 | + 'db_table': "'typyodsylaczy'"}, | |
874 | + 'desc': ('django.db.models.fields.CharField', [], | |
875 | + {'max_length': '40', 'db_column': "'naglowek'"}), | |
876 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], | |
877 | + {'related_name': "'crtype_to'", 'db_column': "'pos1'", | |
878 | + 'to': "orm['dictionary.PartOfSpeech']"}), | |
879 | + 'id': ( | |
880 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
881 | + 'index': ('django.db.models.fields.IntegerField', [], | |
882 | + {'db_column': "'kolejnosc'"}), | |
883 | + 'symbol': ('django.db.models.fields.CharField', [], | |
884 | + {'max_length': '10', 'db_column': "'typods'"}), | |
885 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], | |
886 | + {'related_name': "'crtype_from'", 'db_column': "'pos2'", | |
887 | + 'to': "orm['dictionary.PartOfSpeech']"}) | |
587 | 888 | }, |
588 | 889 | 'dictionary.ending': { |
589 | - 'Meta': {'ordering': "['index']", 'unique_together': "(('pattern', 'base_form_label', 'index'),)", 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
590 | - 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
591 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
592 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'zind'"}), | |
593 | - 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endings'", 'db_column': "'w_id'", 'to': "orm['dictionary.Pattern']"}), | |
594 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
595 | - 'string': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
890 | + 'Meta': {'ordering': "['index']", | |
891 | + 'unique_together': "(('pattern', 'base_form_label', 'index'),)", | |
892 | + 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
893 | + 'base_form_label': ( | |
894 | + 'django.db.models.fields.related.ForeignKey', [], | |
895 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
896 | + 'id': ( | |
897 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
898 | + 'index': ('django.db.models.fields.IntegerField', [], | |
899 | + {'db_column': "'zind'"}), | |
900 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
901 | + {'related_name': "'endings'", 'db_column': "'w_id'", | |
902 | + 'to': "orm['dictionary.Pattern']"}), | |
903 | + 'qualifiers': ( | |
904 | + 'django.db.models.fields.related.ManyToManyField', [], | |
905 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
906 | + 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
907 | + 'string': ('django.db.models.fields.CharField', [], | |
908 | + {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
596 | 909 | }, |
597 | 910 | 'dictionary.history': { |
598 | 911 | 'Meta': {'object_name': 'History', 'db_table': "'history'"}, |
599 | - 'column_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'column_name_'", 'blank': 'True'}), | |
600 | - 'column_ord': ('django.db.models.fields.IntegerField', [], {'db_column': "'ordinal_position_of_column_'"}), | |
601 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
602 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'null': 'True', 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
603 | - 'new_value': ('django.db.models.fields.TextField', [], {'db_column': "'new_value_'", 'blank': 'True'}), | |
604 | - 'old_value': ('django.db.models.fields.TextField', [], {'db_column': "'old_value_'", 'blank': 'True'}), | |
605 | - 'operation': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'operation_'"}), | |
606 | - 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Pattern']", 'null': 'True', 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
607 | - 'row_id': ('django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
608 | - 'table_name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_column': "'table_name_'"}), | |
609 | - 'table_oid': ('django.db.models.fields.IntegerField', [], {'db_column': "'table_oid_'"}), | |
610 | - 'timestamp': ('django.db.models.fields.DateTimeField', [], {'db_column': "'timestamp_'"}), | |
611 | - 'transaction_began': ('django.db.models.fields.DateTimeField', [], {'db_column': "'transaction_began_'"}), | |
612 | - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
912 | + 'column_name': ('django.db.models.fields.CharField', [], | |
913 | + {'max_length': '120', 'db_column': "'column_name_'", | |
914 | + 'blank': 'True'}), | |
915 | + 'column_ord': ('django.db.models.fields.IntegerField', [], | |
916 | + {'db_column': "'ordinal_position_of_column_'"}), | |
917 | + 'id': ( | |
918 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
919 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
920 | + {'to': "orm['dictionary.Lexeme']", 'null': 'True', | |
921 | + 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
922 | + 'new_value': ('django.db.models.fields.TextField', [], | |
923 | + {'db_column': "'new_value_'", 'blank': 'True'}), | |
924 | + 'old_value': ('django.db.models.fields.TextField', [], | |
925 | + {'db_column': "'old_value_'", 'blank': 'True'}), | |
926 | + 'operation': ('django.db.models.fields.CharField', [], | |
927 | + {'max_length': '120', 'db_column': "'operation_'"}), | |
928 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
929 | + {'to': "orm['dictionary.Pattern']", 'null': 'True', | |
930 | + 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
931 | + 'row_id': ( | |
932 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
933 | + 'table_name': ('django.db.models.fields.CharField', [], | |
934 | + {'max_length': '120', 'db_column': "'table_name_'"}), | |
935 | + 'table_oid': ('django.db.models.fields.IntegerField', [], | |
936 | + {'db_column': "'table_oid_'"}), | |
937 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], | |
938 | + {'db_column': "'timestamp_'"}), | |
939 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], | |
940 | + {'db_column': "'transaction_began_'"}), | |
941 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
942 | + {'to': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
613 | 943 | }, |
614 | 944 | 'dictionary.inflectioncharacteristic': { |
615 | - 'Meta': {'unique_together': "(['entry', 'part_of_speech'],)", 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
616 | - 'basic_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
617 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
618 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
619 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
945 | + 'Meta': {'unique_together': "(['entry', 'part_of_speech'],)", | |
946 | + 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
947 | + 'basic_form_label': ( | |
948 | + 'django.db.models.fields.related.ForeignKey', [], | |
949 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
950 | + 'entry': ('django.db.models.fields.CharField', [], | |
951 | + {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
952 | + 'id': ( | |
953 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
954 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
955 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
620 | 956 | }, |
621 | 957 | 'dictionary.inputform': { |
622 | 958 | 'Meta': {'object_name': 'InputForm'}, |
623 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
624 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
625 | - 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InputLexeme']"}) | |
959 | + 'form': ('django.db.models.fields.CharField', [], | |
960 | + {'max_length': '64', 'db_index': 'True'}), | |
961 | + 'id': ( | |
962 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
963 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
964 | + {'to': "orm['dictionary.InputLexeme']"}) | |
626 | 965 | }, |
627 | 966 | 'dictionary.inputlexeme': { |
628 | 967 | 'Meta': {'object_name': 'InputLexeme'}, |
629 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
630 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
968 | + 'entry': ('django.db.models.fields.CharField', [], | |
969 | + {'max_length': '64', 'db_index': 'True'}), | |
970 | + 'id': ( | |
971 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
631 | 972 | }, |
632 | 973 | 'dictionary.lexeme': { |
633 | 974 | 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, |
634 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
635 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
636 | - 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
637 | - 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
638 | - 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
639 | - 'homonym_number': ('django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
640 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
641 | - 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_column': "'data_modyfikacji'", 'blank': 'True'}), | |
642 | - 'owner_vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", 'to': "orm['dictionary.Vocabulary']"}), | |
643 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
644 | - 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Pattern']", 'through': "orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
645 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
646 | - 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
647 | - 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
648 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}) | |
975 | + 'comment': ('django.db.models.fields.TextField', [], | |
976 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
977 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
978 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
979 | + 'entry': ('django.db.models.fields.CharField', [], | |
980 | + {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", | |
981 | + 'blank': 'True'}), | |
982 | + 'entry_suffix': ('django.db.models.fields.CharField', [], | |
983 | + {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
984 | + 'gloss': ('django.db.models.fields.TextField', [], | |
985 | + {'db_column': "'glosa'", 'blank': 'True'}), | |
986 | + 'homonym_number': ( | |
987 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
988 | + 'id': ( | |
989 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
990 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], | |
991 | + {'auto_now': 'True', 'db_column': "'data_modyfikacji'", | |
992 | + 'blank': 'True'}), | |
993 | + 'owner_vocabulary': ( | |
994 | + 'django.db.models.fields.related.ForeignKey', [], | |
995 | + {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", | |
996 | + 'to': "orm['dictionary.Vocabulary']"}), | |
997 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
998 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
999 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], | |
1000 | + {'to': "orm['dictionary.Pattern']", | |
1001 | + 'through': "orm['dictionary.LexemeInflectionPattern']", | |
1002 | + 'symmetrical': 'False'}), | |
1003 | + 'qualifiers': ( | |
1004 | + 'django.db.models.fields.related.ManyToManyField', [], | |
1005 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
1006 | + 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
1007 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], | |
1008 | + {'to': "orm['auth.User']", 'null': 'True', | |
1009 | + 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
1010 | + 'source': ('django.db.models.fields.CharField', [], | |
1011 | + {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
1012 | + 'status': ('django.db.models.fields.CharField', [], | |
1013 | + {'max_length': '8', 'db_column': "'status'"}) | |
649 | 1014 | }, |
650 | 1015 | 'dictionary.lexemeassociation': { |
651 | - 'Meta': {'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
652 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
653 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
654 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
1016 | + 'Meta': {'object_name': 'LexemeAssociation', | |
1017 | + 'db_table': "'leksemy_w_slownikach'"}, | |
1018 | + 'id': ( | |
1019 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1020 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
1021 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
1022 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
1023 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
655 | 1024 | }, |
656 | 1025 | 'dictionary.lexemeform': { |
657 | 1026 | 'Meta': {'object_name': 'LexemeForm'}, |
658 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
659 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
660 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']"}) | |
1027 | + 'form': ('django.db.models.fields.CharField', [], | |
1028 | + {'max_length': '128', 'db_index': 'True'}), | |
1029 | + 'id': ( | |
1030 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1031 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
1032 | + {'to': "orm['dictionary.Lexeme']"}) | |
661 | 1033 | }, |
662 | 1034 | 'dictionary.lexemeinflectionpattern': { |
663 | - 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
664 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
665 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
666 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
667 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
668 | - 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
669 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
670 | - 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
1035 | + 'Meta': {'ordering': "['index']", | |
1036 | + 'unique_together': "(('lexeme', 'index'),)", | |
1037 | + 'object_name': 'LexemeInflectionPattern', | |
1038 | + 'db_table': "'odmieniasie'"}, | |
1039 | + 'id': ( | |
1040 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1041 | + 'index': ('django.db.models.fields.IntegerField', [], | |
1042 | + {'db_column': "'oind'"}), | |
1043 | + 'inflection_characteristic': ( | |
1044 | + 'django.db.models.fields.related.ForeignKey', [], | |
1045 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
1046 | + 'db_column': "'charfl'"}), | |
1047 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
1048 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
1049 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
1050 | + {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
1051 | + 'qualifiers': ( | |
1052 | + 'django.db.models.fields.related.ManyToManyField', [], | |
1053 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
1054 | + 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
1055 | + 'root': ('django.db.models.fields.CharField', [], | |
1056 | + {'max_length': '64', 'db_column': "'rdzen'"}) | |
671 | 1057 | }, |
672 | 1058 | 'dictionary.lexicalclass': { |
673 | 1059 | 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, |
674 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
1060 | + 'symbol': ('django.db.models.fields.CharField', [], | |
1061 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
675 | 1062 | }, |
676 | 1063 | 'dictionary.paradygmatywsjp': { |
677 | - 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
678 | - 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
1064 | + 'Meta': {'object_name': 'ParadygmatyWSJP', | |
1065 | + 'db_table': "'paradygmatywsjp'"}, | |
1066 | + 'charfl': ('django.db.models.fields.related.ForeignKey', [], | |
1067 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
1068 | + 'db_column': "'charfl'"}), | |
679 | 1069 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
680 | 1070 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
681 | - 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
682 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1071 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], | |
1072 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
1073 | + 'id': ( | |
1074 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
683 | 1075 | 'kskl': ('django.db.models.fields.IntegerField', [], {}), |
684 | 1076 | 'morf': ('django.db.models.fields.TextField', [], {}), |
685 | - 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
686 | - 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
1077 | + 'podparad': ('django.db.models.fields.CharField', [], | |
1078 | + {'max_length': '4', 'blank': 'True'}), | |
1079 | + 'pref': ('django.db.models.fields.CharField', [], | |
1080 | + {'max_length': '20', 'blank': 'True'}), | |
687 | 1081 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
688 | 1082 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
689 | - 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
690 | - 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
691 | - 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
1083 | + 'suf': ('django.db.models.fields.CharField', [], | |
1084 | + {'max_length': '20', 'blank': 'True'}), | |
1085 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], | |
1086 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
1087 | + 'wariant': ( | |
1088 | + 'django.db.models.fields.CharField', [], {'max_length': '4'}) | |
692 | 1089 | }, |
693 | 1090 | 'dictionary.partofspeech': { |
694 | - 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
695 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
696 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
1091 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', | |
1092 | + 'db_table': "'klasygramatyczne'"}, | |
1093 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
1094 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
1095 | + 'symbol': ('django.db.models.fields.CharField', [], | |
1096 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
697 | 1097 | }, |
698 | 1098 | 'dictionary.pattern': { |
699 | - 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
700 | - 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
701 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
702 | - 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}), | |
703 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
704 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
705 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
706 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
1099 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', | |
1100 | + 'db_table': "'wzory'"}, | |
1101 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], | |
1102 | + {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
1103 | + 'comment': ('django.db.models.fields.TextField', [], | |
1104 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
1105 | + 'example': ('django.db.models.fields.CharField', [], | |
1106 | + {'max_length': '64', 'db_column': "'przyklad'"}), | |
1107 | + 'id': ( | |
1108 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1109 | + 'name': ('django.db.models.fields.CharField', [], | |
1110 | + {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
1111 | + 'status': ( | |
1112 | + 'django.db.models.fields.CharField', [], {'max_length': '8'}), | |
1113 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
1114 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
707 | 1115 | }, |
708 | 1116 | 'dictionary.patterntype': { |
709 | 1117 | 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"}, |
710 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
711 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
712 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
1118 | + 'entry': ('django.db.models.fields.CharField', [], | |
1119 | + {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
1120 | + 'id': ( | |
1121 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1122 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
1123 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
713 | 1124 | }, |
714 | 1125 | 'dictionary.qualifier': { |
715 | - 'Meta': {'ordering': "['label']", 'unique_together': "(['label', 'vocabulary'],)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
716 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
717 | - 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
718 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
719 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
720 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': "orm['dictionary.Vocabulary']"}) | |
1126 | + 'Meta': {'ordering': "['label']", | |
1127 | + 'unique_together': "(['label', 'vocabulary'],)", | |
1128 | + 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
1129 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
1130 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
1131 | + 'exclusion_class': ( | |
1132 | + 'django.db.models.fields.related.ForeignKey', [], | |
1133 | + {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', | |
1134 | + 'db_column': "'klasa'", 'blank': 'True'}), | |
1135 | + 'id': ( | |
1136 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1137 | + 'label': ('django.db.models.fields.CharField', [], | |
1138 | + {'max_length': '64', 'db_column': "'kwal'"}), | |
1139 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
1140 | + {'related_name': "'qualifiers'", 'db_column': "'slownik'", | |
1141 | + 'to': "orm['dictionary.Vocabulary']"}) | |
721 | 1142 | }, |
722 | 1143 | 'dictionary.qualifierexclusionclass': { |
723 | - 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
724 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
725 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
726 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
1144 | + 'Meta': {'object_name': 'QualifierExclusionClass', | |
1145 | + 'db_table': "'klasy_wykluczania'"}, | |
1146 | + 'id': ( | |
1147 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1148 | + 'name': ('django.db.models.fields.CharField', [], | |
1149 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
1150 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
1151 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
727 | 1152 | }, |
728 | 1153 | 'dictionary.savedexportdata': { |
729 | 1154 | 'Meta': {'object_name': 'SavedExportData'}, |
730 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
731 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
1155 | + 'id': ( | |
1156 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1157 | + 'name': ('django.db.models.fields.CharField', [], | |
1158 | + {'unique': 'True', 'max_length': '64'}), | |
732 | 1159 | 'serialized_data': ('django.db.models.fields.TextField', [], {}) |
733 | 1160 | }, |
734 | 1161 | 'dictionary.savedfilter': { |
735 | - 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
736 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
737 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
1162 | + 'Meta': {'unique_together': "(('name', 'user'),)", | |
1163 | + 'object_name': 'SavedFilter'}, | |
1164 | + 'id': ( | |
1165 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1166 | + 'name': ( | |
1167 | + 'django.db.models.fields.CharField', [], {'max_length': '64'}), | |
738 | 1168 | 'serialized_filter': ('django.db.models.fields.TextField', [], {}), |
739 | - 'super': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
740 | - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) | |
1169 | + 'super': ( | |
1170 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
1171 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
1172 | + {'to': "orm['auth.User']"}) | |
741 | 1173 | }, |
742 | 1174 | 'dictionary.tablecell': { |
743 | 1175 | 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"}, |
744 | - 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}), | |
1176 | + 'cell': ('django.db.models.fields.related.OneToOneField', [], | |
1177 | + {'to': "orm['dictionary.Cell']", 'unique': 'True', | |
1178 | + 'db_column': "'k_id'"}), | |
745 | 1179 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
746 | 1180 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
747 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1181 | + 'id': ( | |
1182 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
748 | 1183 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
749 | 1184 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}) |
750 | 1185 | }, |
751 | 1186 | 'dictionary.tableheader': { |
752 | - 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"}, | |
1187 | + 'Meta': {'object_name': 'TableHeader', | |
1188 | + 'db_table': "'naglowki_tabel'"}, | |
753 | 1189 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
754 | 1190 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
755 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
756 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
1191 | + 'id': ( | |
1192 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1193 | + 'label': ('django.db.models.fields.CharField', [], | |
1194 | + {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
757 | 1195 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
758 | - 'row_header': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'wierszowy'"}), | |
1196 | + 'row_header': ('django.db.models.fields.BooleanField', [], | |
1197 | + {'default': 'False', 'db_column': "'wierszowy'"}), | |
759 | 1198 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
760 | - 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
1199 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
1200 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
761 | 1201 | }, |
762 | 1202 | 'dictionary.tabletemplate': { |
763 | - 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"}, | |
764 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
765 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
766 | - 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
767 | - 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
1203 | + 'Meta': {'object_name': 'TableTemplate', | |
1204 | + 'db_table': "'szablony_tabel'"}, | |
1205 | + 'id': ( | |
1206 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
1207 | + 'inflection_characteristic': ( | |
1208 | + 'django.db.models.fields.related.ForeignKey', [], | |
1209 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
1210 | + 'db_column': "'charfl'"}), | |
1211 | + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], | |
1212 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
1213 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], | |
1214 | + {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
768 | 1215 | }, |
769 | 1216 | 'dictionary.variant': { |
770 | 1217 | 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, |
771 | - 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}) | |
1218 | + 'id': ('django.db.models.fields.CharField', [], | |
1219 | + {'max_length': '32', 'primary_key': 'True', | |
1220 | + 'db_column': "'wariant'"}) | |
772 | 1221 | }, |
773 | 1222 | 'dictionary.vocabulary': { |
774 | 1223 | 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, |
775 | - 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
776 | - 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}), | |
777 | - 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}), | |
778 | - 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': "orm['dictionary.LexemeAssociation']", 'to': "orm['dictionary.Lexeme']"}), | |
779 | - 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}), | |
780 | - 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}) | |
1224 | + 'classifications': ( | |
1225 | + 'django.db.models.fields.related.ManyToManyField', [], | |
1226 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
1227 | + 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
1228 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], | |
1229 | + {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", | |
1230 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
1231 | + 'id': ('django.db.models.fields.CharField', [], | |
1232 | + {'max_length': '64', 'primary_key': 'True', | |
1233 | + 'db_column': "'slownik'"}), | |
1234 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
1235 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
1236 | + 'blank': 'True', 'through': "orm['dictionary.LexemeAssociation']", | |
1237 | + 'to': "orm['dictionary.Lexeme']"}), | |
1238 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], | |
1239 | + {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", | |
1240 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
1241 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], | |
1242 | + {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", | |
1243 | + 'blank': 'True', 'to': "orm['auth.User']"}) | |
781 | 1244 | } |
782 | 1245 | } |
783 | 1246 | |
... | ... |
dictionary/migrations/0002_auto__add_field_lexeme_note.py
... | ... | @@ -6,12 +6,12 @@ from django.db import models |
6 | 6 | |
7 | 7 | |
8 | 8 | class Migration(SchemaMigration): |
9 | - | |
10 | 9 | def forwards(self, orm): |
11 | 10 | # Adding field 'Lexeme.note' |
12 | 11 | db.add_column('leksemy', 'note', |
13 | - self.gf('django.db.models.fields.TextField')(default='', db_column='nota', blank=True), | |
14 | - keep_default=False) | |
12 | + self.gf('django.db.models.fields.TextField')(default='', | |
13 | + db_column='nota', blank=True), | |
14 | + keep_default=False) | |
15 | 15 | |
16 | 16 | |
17 | 17 | def backwards(self, orm): |
... | ... | @@ -22,279 +22,518 @@ class Migration(SchemaMigration): |
22 | 22 | models = { |
23 | 23 | 'auth.group': { |
24 | 24 | 'Meta': {'object_name': 'Group'}, |
25 | - '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': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
25 | + 'id': ( | |
26 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
27 | + 'name': ('django.db.models.fields.CharField', [], | |
28 | + {'unique': 'True', 'max_length': '80'}), | |
29 | + 'permissions': ( | |
30 | + 'django.db.models.fields.related.ManyToManyField', [], | |
31 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
32 | + 'blank': 'True'}) | |
28 | 33 | }, |
29 | 34 | 'auth.permission': { |
30 | - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, | |
31 | - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
32 | - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), | |
33 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
34 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
35 | + 'Meta': { | |
36 | + 'ordering': "('content_type__app_label', 'content_type__model', 'codename')", | |
37 | + 'unique_together': "(('content_type', 'codename'),)", | |
38 | + 'object_name': 'Permission'}, | |
39 | + 'codename': ( | |
40 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
41 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], | |
42 | + {'to': "orm['contenttypes.ContentType']"}), | |
43 | + 'id': ( | |
44 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
45 | + 'name': ( | |
46 | + 'django.db.models.fields.CharField', [], {'max_length': '50'}) | |
35 | 47 | }, |
36 | 48 | 'auth.user': { |
37 | 49 | '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': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | |
42 | - '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': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | |
50 | - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
50 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], | |
51 | + {'default': 'datetime.datetime.now'}), | |
52 | + 'email': ('django.db.models.fields.EmailField', [], | |
53 | + {'max_length': '75', 'blank': 'True'}), | |
54 | + 'first_name': ('django.db.models.fields.CharField', [], | |
55 | + {'max_length': '30', 'blank': 'True'}), | |
56 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], | |
57 | + {'to': "orm['auth.Group']", 'symmetrical': 'False', | |
58 | + 'blank': 'True'}), | |
59 | + 'id': ( | |
60 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
61 | + 'is_active': ( | |
62 | + 'django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
63 | + 'is_staff': ( | |
64 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
65 | + 'is_superuser': ( | |
66 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
67 | + 'last_login': ('django.db.models.fields.DateTimeField', [], | |
68 | + {'default': 'datetime.datetime.now'}), | |
69 | + 'last_name': ('django.db.models.fields.CharField', [], | |
70 | + {'max_length': '30', 'blank': 'True'}), | |
71 | + 'password': ( | |
72 | + 'django.db.models.fields.CharField', [], {'max_length': '128'}), | |
73 | + 'user_permissions': ( | |
74 | + 'django.db.models.fields.related.ManyToManyField', [], | |
75 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
76 | + 'blank': 'True'}), | |
77 | + 'username': ('django.db.models.fields.CharField', [], | |
78 | + {'unique': 'True', 'max_length': '30'}) | |
51 | 79 | }, |
52 | 80 | '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 | - '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'}) | |
81 | + 'Meta': {'ordering': "('name',)", | |
82 | + 'unique_together': "(('app_label', 'model'),)", | |
83 | + 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
84 | + 'app_label': ( | |
85 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
86 | + 'id': ( | |
87 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
88 | + 'model': ( | |
89 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
90 | + 'name': ( | |
91 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}) | |
58 | 92 | }, |
59 | 93 | 'dictionary.baseformlabel': { |
60 | 94 | 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, |
61 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
62 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
95 | + 'entry': ('django.db.models.fields.CharField', [], | |
96 | + {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
97 | + 'id': ( | |
98 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
63 | 99 | }, |
64 | 100 | 'dictionary.cell': { |
65 | - 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"}, | |
66 | - 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
67 | - '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': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
72 | - 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'}) | |
101 | + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', | |
102 | + 'db_table': "'klatki'"}, | |
103 | + 'base_form_label': ( | |
104 | + 'django.db.models.fields.related.ForeignKey', [], | |
105 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
106 | + 'id': ( | |
107 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
108 | + 'index': ('django.db.models.fields.IntegerField', [], | |
109 | + {'db_column': "'kind'"}), | |
110 | + 'prefix': ('django.db.models.fields.CharField', [], | |
111 | + {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
112 | + 'suffix': ('django.db.models.fields.CharField', [], | |
113 | + {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
114 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
115 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
116 | + 'tag': ('django.db.models.fields.TextField', [], | |
117 | + {'db_column': "'tag'", 'blank': 'True'}) | |
73 | 118 | }, |
74 | 119 | 'dictionary.classification': { |
75 | - 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
76 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
77 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
120 | + 'Meta': {'object_name': 'Classification', | |
121 | + 'db_table': "'klasyfikacje'"}, | |
122 | + 'id': ( | |
123 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
124 | + 'name': ('django.db.models.fields.CharField', [], | |
125 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
78 | 126 | }, |
79 | 127 | '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': "orm['dictionary.Classification']"}), | |
82 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
83 | - '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': "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': "orm['dictionary.ClassificationValue']"}) | |
128 | + 'Meta': {'object_name': 'ClassificationValue', | |
129 | + 'db_table': "'wartosci_klasyfikacji'"}, | |
130 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], | |
131 | + {'related_name': "'values'", 'db_column': "'klas_id'", | |
132 | + 'to': "orm['dictionary.Classification']"}), | |
133 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
134 | + {'default': 'False', 'db_column': "'usunieta'"}), | |
135 | + 'id': ( | |
136 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
137 | + 'label': ('django.db.models.fields.CharField', [], | |
138 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
139 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
140 | + {'to': "orm['dictionary.Lexeme']", 'symmetrical': 'False', | |
141 | + 'blank': 'True'}), | |
142 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], | |
143 | + {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', | |
144 | + 'db_column': "'rodzic'", | |
145 | + 'to': "orm['dictionary.ClassificationValue']"}) | |
87 | 146 | }, |
88 | 147 | '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': "orm['dictionary.Lexeme']"}), | |
91 | - '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': "orm['dictionary.Lexeme']"}), | |
93 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
148 | + 'Meta': {'object_name': 'CrossReference', | |
149 | + 'db_table': "'odsylacze'"}, | |
150 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
151 | + {'related_name': "'refs_to'", 'db_column': "'l_id_od'", | |
152 | + 'to': "orm['dictionary.Lexeme']"}), | |
153 | + 'id': ( | |
154 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
155 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
156 | + {'related_name': "'refs_from'", 'db_column': "'l_id_do'", | |
157 | + 'to': "orm['dictionary.Lexeme']"}), | |
158 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
159 | + {'to': "orm['dictionary.CrossReferenceType']", | |
160 | + 'db_column': "'typods_id'"}) | |
94 | 161 | }, |
95 | 162 | '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': "orm['dictionary.PartOfSpeech']"}), | |
99 | - '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': "orm['dictionary.PartOfSpeech']"}) | |
163 | + 'Meta': {'object_name': 'CrossReferenceType', | |
164 | + 'db_table': "'typyodsylaczy'"}, | |
165 | + 'desc': ('django.db.models.fields.CharField', [], | |
166 | + {'max_length': '40', 'db_column': "'naglowek'"}), | |
167 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], | |
168 | + {'related_name': "'crtype_to'", 'db_column': "'pos1'", | |
169 | + 'to': "orm['dictionary.PartOfSpeech']"}), | |
170 | + 'id': ( | |
171 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
172 | + 'index': ('django.db.models.fields.IntegerField', [], | |
173 | + {'db_column': "'kolejnosc'"}), | |
174 | + 'symbol': ('django.db.models.fields.CharField', [], | |
175 | + {'max_length': '10', 'db_column': "'typods'"}), | |
176 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], | |
177 | + {'related_name': "'crtype_from'", 'db_column': "'pos2'", | |
178 | + 'to': "orm['dictionary.PartOfSpeech']"}) | |
103 | 179 | }, |
104 | 180 | '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': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
107 | - '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': "orm['dictionary.Pattern']"}), | |
110 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "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'}) | |
181 | + 'Meta': {'ordering': "['index']", | |
182 | + 'unique_together': "(('pattern', 'base_form_label', 'index'),)", | |
183 | + 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
184 | + 'base_form_label': ( | |
185 | + 'django.db.models.fields.related.ForeignKey', [], | |
186 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
187 | + 'id': ( | |
188 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
189 | + 'index': ('django.db.models.fields.IntegerField', [], | |
190 | + {'db_column': "'zind'"}), | |
191 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
192 | + {'related_name': "'endings'", 'db_column': "'w_id'", | |
193 | + 'to': "orm['dictionary.Pattern']"}), | |
194 | + 'qualifiers': ( | |
195 | + 'django.db.models.fields.related.ManyToManyField', [], | |
196 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
197 | + 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
198 | + 'string': ('django.db.models.fields.CharField', [], | |
199 | + {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
112 | 200 | }, |
113 | 201 | 'dictionary.history': { |
114 | 202 | '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 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
118 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "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': "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': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
203 | + 'column_name': ('django.db.models.fields.CharField', [], | |
204 | + {'max_length': '120', 'db_column': "'column_name_'", | |
205 | + 'blank': 'True'}), | |
206 | + 'column_ord': ('django.db.models.fields.IntegerField', [], | |
207 | + {'db_column': "'ordinal_position_of_column_'"}), | |
208 | + 'id': ( | |
209 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
210 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
211 | + {'to': "orm['dictionary.Lexeme']", 'null': 'True', | |
212 | + 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
213 | + 'new_value': ('django.db.models.fields.TextField', [], | |
214 | + {'db_column': "'new_value_'", 'blank': 'True'}), | |
215 | + 'old_value': ('django.db.models.fields.TextField', [], | |
216 | + {'db_column': "'old_value_'", 'blank': 'True'}), | |
217 | + 'operation': ('django.db.models.fields.CharField', [], | |
218 | + {'max_length': '120', 'db_column': "'operation_'"}), | |
219 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
220 | + {'to': "orm['dictionary.Pattern']", 'null': 'True', | |
221 | + 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
222 | + 'row_id': ( | |
223 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
224 | + 'table_name': ('django.db.models.fields.CharField', [], | |
225 | + {'max_length': '120', 'db_column': "'table_name_'"}), | |
226 | + 'table_oid': ('django.db.models.fields.IntegerField', [], | |
227 | + {'db_column': "'table_oid_'"}), | |
228 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], | |
229 | + {'db_column': "'timestamp_'"}), | |
230 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], | |
231 | + {'db_column': "'transaction_began_'"}), | |
232 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
233 | + {'to': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
129 | 234 | }, |
130 | 235 | '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': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
133 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
134 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
135 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
236 | + 'Meta': {'unique_together': "(['entry', 'part_of_speech'],)", | |
237 | + 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
238 | + 'basic_form_label': ( | |
239 | + 'django.db.models.fields.related.ForeignKey', [], | |
240 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
241 | + 'entry': ('django.db.models.fields.CharField', [], | |
242 | + {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
243 | + 'id': ( | |
244 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
245 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
246 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
136 | 247 | }, |
137 | 248 | 'dictionary.inputform': { |
138 | 249 | 'Meta': {'object_name': 'InputForm'}, |
139 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
140 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
141 | - 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InputLexeme']"}) | |
250 | + 'form': ('django.db.models.fields.CharField', [], | |
251 | + {'max_length': '64', 'db_index': 'True'}), | |
252 | + 'id': ( | |
253 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
254 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
255 | + {'to': "orm['dictionary.InputLexeme']"}) | |
142 | 256 | }, |
143 | 257 | 'dictionary.inputlexeme': { |
144 | 258 | 'Meta': {'object_name': 'InputLexeme'}, |
145 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
146 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
259 | + 'entry': ('django.db.models.fields.CharField', [], | |
260 | + {'max_length': '64', 'db_index': 'True'}), | |
261 | + 'id': ( | |
262 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
147 | 263 | }, |
148 | 264 | 'dictionary.lexeme': { |
149 | 265 | 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, |
150 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
151 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
152 | - 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
153 | - 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
154 | - 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
155 | - 'homonym_number': ('django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
156 | - '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': "orm['dictionary.Vocabulary']"}), | |
160 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
161 | - 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Pattern']", 'through': "orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
162 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
163 | - 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
164 | - 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
165 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}) | |
266 | + 'comment': ('django.db.models.fields.TextField', [], | |
267 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
268 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
269 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
270 | + 'entry': ('django.db.models.fields.CharField', [], | |
271 | + {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", | |
272 | + 'blank': 'True'}), | |
273 | + 'entry_suffix': ('django.db.models.fields.CharField', [], | |
274 | + {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
275 | + 'gloss': ('django.db.models.fields.TextField', [], | |
276 | + {'db_column': "'glosa'", 'blank': 'True'}), | |
277 | + 'homonym_number': ( | |
278 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
279 | + 'id': ( | |
280 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
281 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], | |
282 | + {'auto_now': 'True', 'db_column': "'data_modyfikacji'", | |
283 | + 'blank': 'True'}), | |
284 | + 'note': ('django.db.models.fields.TextField', [], | |
285 | + {'db_column': "'nota'", 'blank': 'True'}), | |
286 | + 'owner_vocabulary': ( | |
287 | + 'django.db.models.fields.related.ForeignKey', [], | |
288 | + {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", | |
289 | + 'to': "orm['dictionary.Vocabulary']"}), | |
290 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
291 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
292 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], | |
293 | + {'to': "orm['dictionary.Pattern']", | |
294 | + 'through': "orm['dictionary.LexemeInflectionPattern']", | |
295 | + 'symmetrical': 'False'}), | |
296 | + 'qualifiers': ( | |
297 | + 'django.db.models.fields.related.ManyToManyField', [], | |
298 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
299 | + 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
300 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], | |
301 | + {'to': "orm['auth.User']", 'null': 'True', | |
302 | + 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
303 | + 'source': ('django.db.models.fields.CharField', [], | |
304 | + {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
305 | + 'status': ('django.db.models.fields.CharField', [], | |
306 | + {'max_length': '8', 'db_column': "'status'"}) | |
166 | 307 | }, |
167 | 308 | 'dictionary.lexemeassociation': { |
168 | - 'Meta': {'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
169 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
170 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
171 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
309 | + 'Meta': {'object_name': 'LexemeAssociation', | |
310 | + 'db_table': "'leksemy_w_slownikach'"}, | |
311 | + 'id': ( | |
312 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
313 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
314 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
315 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
316 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
172 | 317 | }, |
173 | 318 | 'dictionary.lexemeform': { |
174 | 319 | 'Meta': {'object_name': 'LexemeForm'}, |
175 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
176 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
177 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']"}) | |
320 | + 'form': ('django.db.models.fields.CharField', [], | |
321 | + {'max_length': '128', 'db_index': 'True'}), | |
322 | + 'id': ( | |
323 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
324 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
325 | + {'to': "orm['dictionary.Lexeme']"}) | |
178 | 326 | }, |
179 | 327 | 'dictionary.lexemeinflectionpattern': { |
180 | - 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
181 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
182 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
183 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
184 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
185 | - 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
186 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
187 | - 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
328 | + 'Meta': {'ordering': "['index']", | |
329 | + 'unique_together': "(('lexeme', 'index'),)", | |
330 | + 'object_name': 'LexemeInflectionPattern', | |
331 | + 'db_table': "'odmieniasie'"}, | |
332 | + 'id': ( | |
333 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
334 | + 'index': ('django.db.models.fields.IntegerField', [], | |
335 | + {'db_column': "'oind'"}), | |
336 | + 'inflection_characteristic': ( | |
337 | + 'django.db.models.fields.related.ForeignKey', [], | |
338 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
339 | + 'db_column': "'charfl'"}), | |
340 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
341 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
342 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
343 | + {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
344 | + 'qualifiers': ( | |
345 | + 'django.db.models.fields.related.ManyToManyField', [], | |
346 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
347 | + 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
348 | + 'root': ('django.db.models.fields.CharField', [], | |
349 | + {'max_length': '64', 'db_column': "'rdzen'"}) | |
188 | 350 | }, |
189 | 351 | 'dictionary.lexicalclass': { |
190 | 352 | 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, |
191 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
353 | + 'symbol': ('django.db.models.fields.CharField', [], | |
354 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
192 | 355 | }, |
193 | 356 | 'dictionary.paradygmatywsjp': { |
194 | - 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
195 | - 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
357 | + 'Meta': {'object_name': 'ParadygmatyWSJP', | |
358 | + 'db_table': "'paradygmatywsjp'"}, | |
359 | + 'charfl': ('django.db.models.fields.related.ForeignKey', [], | |
360 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
361 | + 'db_column': "'charfl'"}), | |
196 | 362 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
197 | 363 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
198 | - 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
199 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
364 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], | |
365 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
366 | + 'id': ( | |
367 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
200 | 368 | 'kskl': ('django.db.models.fields.IntegerField', [], {}), |
201 | 369 | 'morf': ('django.db.models.fields.TextField', [], {}), |
202 | - 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
203 | - 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
370 | + 'podparad': ('django.db.models.fields.CharField', [], | |
371 | + {'max_length': '4', 'blank': 'True'}), | |
372 | + 'pref': ('django.db.models.fields.CharField', [], | |
373 | + {'max_length': '20', 'blank': 'True'}), | |
204 | 374 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
205 | 375 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
206 | - 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
207 | - 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
208 | - 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
376 | + 'suf': ('django.db.models.fields.CharField', [], | |
377 | + {'max_length': '20', 'blank': 'True'}), | |
378 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], | |
379 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
380 | + 'wariant': ( | |
381 | + 'django.db.models.fields.CharField', [], {'max_length': '4'}) | |
209 | 382 | }, |
210 | 383 | 'dictionary.partofspeech': { |
211 | - 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
212 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
213 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
384 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', | |
385 | + 'db_table': "'klasygramatyczne'"}, | |
386 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
387 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
388 | + 'symbol': ('django.db.models.fields.CharField', [], | |
389 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
214 | 390 | }, |
215 | 391 | 'dictionary.pattern': { |
216 | - 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
217 | - 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
218 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
219 | - 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}), | |
220 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
221 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
222 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
223 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
392 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', | |
393 | + 'db_table': "'wzory'"}, | |
394 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], | |
395 | + {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
396 | + 'comment': ('django.db.models.fields.TextField', [], | |
397 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
398 | + 'example': ('django.db.models.fields.CharField', [], | |
399 | + {'max_length': '64', 'db_column': "'przyklad'"}), | |
400 | + 'id': ( | |
401 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
402 | + 'name': ('django.db.models.fields.CharField', [], | |
403 | + {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
404 | + 'status': ( | |
405 | + 'django.db.models.fields.CharField', [], {'max_length': '8'}), | |
406 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
407 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
224 | 408 | }, |
225 | 409 | 'dictionary.patterntype': { |
226 | 410 | 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"}, |
227 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
228 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
229 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
411 | + 'entry': ('django.db.models.fields.CharField', [], | |
412 | + {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
413 | + 'id': ( | |
414 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
415 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
416 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
230 | 417 | }, |
231 | 418 | 'dictionary.qualifier': { |
232 | - 'Meta': {'ordering': "['label']", 'unique_together': "(['label', 'vocabulary'],)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
233 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
234 | - 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
235 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
236 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
237 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': "orm['dictionary.Vocabulary']"}) | |
419 | + 'Meta': {'ordering': "['label']", | |
420 | + 'unique_together': "(['label', 'vocabulary'],)", | |
421 | + 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
422 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
423 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
424 | + 'exclusion_class': ( | |
425 | + 'django.db.models.fields.related.ForeignKey', [], | |
426 | + {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', | |
427 | + 'db_column': "'klasa'", 'blank': 'True'}), | |
428 | + 'id': ( | |
429 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
430 | + 'label': ('django.db.models.fields.CharField', [], | |
431 | + {'max_length': '64', 'db_column': "'kwal'"}), | |
432 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
433 | + {'related_name': "'qualifiers'", 'db_column': "'slownik'", | |
434 | + 'to': "orm['dictionary.Vocabulary']"}) | |
238 | 435 | }, |
239 | 436 | 'dictionary.qualifierexclusionclass': { |
240 | - 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
241 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
242 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
243 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
437 | + 'Meta': {'object_name': 'QualifierExclusionClass', | |
438 | + 'db_table': "'klasy_wykluczania'"}, | |
439 | + 'id': ( | |
440 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
441 | + 'name': ('django.db.models.fields.CharField', [], | |
442 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
443 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
444 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
244 | 445 | }, |
245 | 446 | 'dictionary.savedexportdata': { |
246 | 447 | 'Meta': {'object_name': 'SavedExportData'}, |
247 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
248 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
448 | + 'id': ( | |
449 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
450 | + 'name': ('django.db.models.fields.CharField', [], | |
451 | + {'unique': 'True', 'max_length': '64'}), | |
249 | 452 | 'serialized_data': ('django.db.models.fields.TextField', [], {}) |
250 | 453 | }, |
251 | 454 | 'dictionary.savedfilter': { |
252 | - 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
253 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
254 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
455 | + 'Meta': {'unique_together': "(('name', 'user'),)", | |
456 | + 'object_name': 'SavedFilter'}, | |
457 | + 'id': ( | |
458 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
459 | + 'name': ( | |
460 | + 'django.db.models.fields.CharField', [], {'max_length': '64'}), | |
255 | 461 | 'serialized_filter': ('django.db.models.fields.TextField', [], {}), |
256 | - 'super': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
257 | - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) | |
462 | + 'super': ( | |
463 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
464 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
465 | + {'to': "orm['auth.User']"}) | |
258 | 466 | }, |
259 | 467 | 'dictionary.tablecell': { |
260 | 468 | 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"}, |
261 | - 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}), | |
469 | + 'cell': ('django.db.models.fields.related.OneToOneField', [], | |
470 | + {'to': "orm['dictionary.Cell']", 'unique': 'True', | |
471 | + 'db_column': "'k_id'"}), | |
262 | 472 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
263 | 473 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
264 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
474 | + 'id': ( | |
475 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
265 | 476 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
266 | 477 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}) |
267 | 478 | }, |
268 | 479 | 'dictionary.tableheader': { |
269 | - 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"}, | |
480 | + 'Meta': {'object_name': 'TableHeader', | |
481 | + 'db_table': "'naglowki_tabel'"}, | |
270 | 482 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
271 | 483 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
272 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
273 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
484 | + 'id': ( | |
485 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
486 | + 'label': ('django.db.models.fields.CharField', [], | |
487 | + {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
274 | 488 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
275 | - 'row_header': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'wierszowy'"}), | |
489 | + 'row_header': ('django.db.models.fields.BooleanField', [], | |
490 | + {'default': 'False', 'db_column': "'wierszowy'"}), | |
276 | 491 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
277 | - 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
492 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
493 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
278 | 494 | }, |
279 | 495 | 'dictionary.tabletemplate': { |
280 | - 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"}, | |
281 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
282 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
283 | - 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
284 | - 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
496 | + 'Meta': {'object_name': 'TableTemplate', | |
497 | + 'db_table': "'szablony_tabel'"}, | |
498 | + 'id': ( | |
499 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
500 | + 'inflection_characteristic': ( | |
501 | + 'django.db.models.fields.related.ForeignKey', [], | |
502 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
503 | + 'db_column': "'charfl'"}), | |
504 | + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], | |
505 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
506 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], | |
507 | + {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
285 | 508 | }, |
286 | 509 | 'dictionary.variant': { |
287 | 510 | 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, |
288 | - 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}) | |
511 | + 'id': ('django.db.models.fields.CharField', [], | |
512 | + {'max_length': '32', 'primary_key': 'True', | |
513 | + 'db_column': "'wariant'"}) | |
289 | 514 | }, |
290 | 515 | 'dictionary.vocabulary': { |
291 | 516 | 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, |
292 | - 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
293 | - 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': "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': "orm['dictionary.LexemeAssociation']", 'to': "orm['dictionary.Lexeme']"}), | |
296 | - 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}), | |
297 | - 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}) | |
517 | + 'classifications': ( | |
518 | + 'django.db.models.fields.related.ManyToManyField', [], | |
519 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
520 | + 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
521 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], | |
522 | + {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", | |
523 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
524 | + 'id': ('django.db.models.fields.CharField', [], | |
525 | + {'max_length': '64', 'primary_key': 'True', | |
526 | + 'db_column': "'slownik'"}), | |
527 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
528 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
529 | + 'blank': 'True', 'through': "orm['dictionary.LexemeAssociation']", | |
530 | + 'to': "orm['dictionary.Lexeme']"}), | |
531 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], | |
532 | + {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", | |
533 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
534 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], | |
535 | + {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", | |
536 | + 'blank': 'True', 'to': "orm['auth.User']"}) | |
298 | 537 | } |
299 | 538 | } |
300 | 539 | |
... | ... |
dictionary/migrations/0003_auto__del_field_savedfilter_super.py
... | ... | @@ -6,7 +6,6 @@ from django.db import models |
6 | 6 | |
7 | 7 | |
8 | 8 | class Migration(SchemaMigration): |
9 | - | |
10 | 9 | def forwards(self, orm): |
11 | 10 | # Deleting field 'SavedFilter.super' |
12 | 11 | db.delete_column('dictionary_savedfilter', 'super') |
... | ... | @@ -15,285 +14,523 @@ class Migration(SchemaMigration): |
15 | 14 | def backwards(self, orm): |
16 | 15 | # Adding field 'SavedFilter.super' |
17 | 16 | db.add_column('dictionary_savedfilter', 'super', |
18 | - self.gf('django.db.models.fields.BooleanField')(default=False), | |
19 | - keep_default=False) | |
17 | + self.gf('django.db.models.fields.BooleanField')(default=False), | |
18 | + keep_default=False) | |
20 | 19 | |
21 | 20 | |
22 | 21 | models = { |
23 | 22 | 'auth.group': { |
24 | 23 | 'Meta': {'object_name': 'Group'}, |
25 | - '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': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) | |
24 | + 'id': ( | |
25 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
26 | + 'name': ('django.db.models.fields.CharField', [], | |
27 | + {'unique': 'True', 'max_length': '80'}), | |
28 | + 'permissions': ( | |
29 | + 'django.db.models.fields.related.ManyToManyField', [], | |
30 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
31 | + 'blank': 'True'}) | |
28 | 32 | }, |
29 | 33 | 'auth.permission': { |
30 | - 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, | |
31 | - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), | |
32 | - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), | |
33 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
34 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) | |
34 | + 'Meta': { | |
35 | + 'ordering': "('content_type__app_label', 'content_type__model', 'codename')", | |
36 | + 'unique_together': "(('content_type', 'codename'),)", | |
37 | + 'object_name': 'Permission'}, | |
38 | + 'codename': ( | |
39 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
40 | + 'content_type': ('django.db.models.fields.related.ForeignKey', [], | |
41 | + {'to': "orm['contenttypes.ContentType']"}), | |
42 | + 'id': ( | |
43 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
44 | + 'name': ( | |
45 | + 'django.db.models.fields.CharField', [], {'max_length': '50'}) | |
35 | 46 | }, |
36 | 47 | 'auth.user': { |
37 | 48 | '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': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), | |
42 | - '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': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), | |
50 | - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) | |
49 | + 'date_joined': ('django.db.models.fields.DateTimeField', [], | |
50 | + {'default': 'datetime.datetime.now'}), | |
51 | + 'email': ('django.db.models.fields.EmailField', [], | |
52 | + {'max_length': '75', 'blank': 'True'}), | |
53 | + 'first_name': ('django.db.models.fields.CharField', [], | |
54 | + {'max_length': '30', 'blank': 'True'}), | |
55 | + 'groups': ('django.db.models.fields.related.ManyToManyField', [], | |
56 | + {'to': "orm['auth.Group']", 'symmetrical': 'False', | |
57 | + 'blank': 'True'}), | |
58 | + 'id': ( | |
59 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
60 | + 'is_active': ( | |
61 | + 'django.db.models.fields.BooleanField', [], {'default': 'True'}), | |
62 | + 'is_staff': ( | |
63 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
64 | + 'is_superuser': ( | |
65 | + 'django.db.models.fields.BooleanField', [], {'default': 'False'}), | |
66 | + 'last_login': ('django.db.models.fields.DateTimeField', [], | |
67 | + {'default': 'datetime.datetime.now'}), | |
68 | + 'last_name': ('django.db.models.fields.CharField', [], | |
69 | + {'max_length': '30', 'blank': 'True'}), | |
70 | + 'password': ( | |
71 | + 'django.db.models.fields.CharField', [], {'max_length': '128'}), | |
72 | + 'user_permissions': ( | |
73 | + 'django.db.models.fields.related.ManyToManyField', [], | |
74 | + {'to': "orm['auth.Permission']", 'symmetrical': 'False', | |
75 | + 'blank': 'True'}), | |
76 | + 'username': ('django.db.models.fields.CharField', [], | |
77 | + {'unique': 'True', 'max_length': '30'}) | |
51 | 78 | }, |
52 | 79 | '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 | - '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'}) | |
80 | + 'Meta': {'ordering': "('name',)", | |
81 | + 'unique_together': "(('app_label', 'model'),)", | |
82 | + 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, | |
83 | + 'app_label': ( | |
84 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
85 | + 'id': ( | |
86 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
87 | + 'model': ( | |
88 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}), | |
89 | + 'name': ( | |
90 | + 'django.db.models.fields.CharField', [], {'max_length': '100'}) | |
58 | 91 | }, |
59 | 92 | 'dictionary.baseformlabel': { |
60 | 93 | 'Meta': {'object_name': 'BaseFormLabel', 'db_table': "'efobazy'"}, |
61 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
62 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
94 | + 'entry': ('django.db.models.fields.CharField', [], | |
95 | + {'max_length': '32', 'db_column': "'efobaz'", 'blank': 'True'}), | |
96 | + 'id': ( | |
97 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
63 | 98 | }, |
64 | 99 | 'dictionary.cell': { |
65 | - 'Meta': {'ordering': "['index']", 'object_name': 'Cell', 'db_table': "'klatki'"}, | |
66 | - 'base_form_label': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
67 | - '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': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
72 | - 'tag': ('django.db.models.fields.TextField', [], {'db_column': "'tag'", 'blank': 'True'}) | |
100 | + 'Meta': {'ordering': "['index']", 'object_name': 'Cell', | |
101 | + 'db_table': "'klatki'"}, | |
102 | + 'base_form_label': ( | |
103 | + 'django.db.models.fields.related.ForeignKey', [], | |
104 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
105 | + 'id': ( | |
106 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
107 | + 'index': ('django.db.models.fields.IntegerField', [], | |
108 | + {'db_column': "'kind'"}), | |
109 | + 'prefix': ('django.db.models.fields.CharField', [], | |
110 | + {'max_length': '20', 'db_column': "'prefiks'", 'blank': 'True'}), | |
111 | + 'suffix': ('django.db.models.fields.CharField', [], | |
112 | + {'max_length': '20', 'db_column': "'sufiks'", 'blank': 'True'}), | |
113 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
114 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}), | |
115 | + 'tag': ('django.db.models.fields.TextField', [], | |
116 | + {'db_column': "'tag'", 'blank': 'True'}) | |
73 | 117 | }, |
74 | 118 | 'dictionary.classification': { |
75 | - 'Meta': {'object_name': 'Classification', 'db_table': "'klasyfikacje'"}, | |
76 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
77 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
119 | + 'Meta': {'object_name': 'Classification', | |
120 | + 'db_table': "'klasyfikacje'"}, | |
121 | + 'id': ( | |
122 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
123 | + 'name': ('django.db.models.fields.CharField', [], | |
124 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}) | |
78 | 125 | }, |
79 | 126 | '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': "orm['dictionary.Classification']"}), | |
82 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usunieta'"}), | |
83 | - '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': "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': "orm['dictionary.ClassificationValue']"}) | |
127 | + 'Meta': {'object_name': 'ClassificationValue', | |
128 | + 'db_table': "'wartosci_klasyfikacji'"}, | |
129 | + 'classification': ('django.db.models.fields.related.ForeignKey', [], | |
130 | + {'related_name': "'values'", 'db_column': "'klas_id'", | |
131 | + 'to': "orm['dictionary.Classification']"}), | |
132 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
133 | + {'default': 'False', 'db_column': "'usunieta'"}), | |
134 | + 'id': ( | |
135 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
136 | + 'label': ('django.db.models.fields.CharField', [], | |
137 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
138 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
139 | + {'to': "orm['dictionary.Lexeme']", 'symmetrical': 'False', | |
140 | + 'blank': 'True'}), | |
141 | + 'parent_node': ('django.db.models.fields.related.ForeignKey', [], | |
142 | + {'blank': 'True', 'related_name': "'child_nodes'", 'null': 'True', | |
143 | + 'db_column': "'rodzic'", | |
144 | + 'to': "orm['dictionary.ClassificationValue']"}) | |
87 | 145 | }, |
88 | 146 | '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': "orm['dictionary.Lexeme']"}), | |
91 | - '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': "orm['dictionary.Lexeme']"}), | |
93 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.CrossReferenceType']", 'db_column': "'typods_id'"}) | |
147 | + 'Meta': {'object_name': 'CrossReference', | |
148 | + 'db_table': "'odsylacze'"}, | |
149 | + 'from_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
150 | + {'related_name': "'refs_to'", 'db_column': "'l_id_od'", | |
151 | + 'to': "orm['dictionary.Lexeme']"}), | |
152 | + 'id': ( | |
153 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
154 | + 'to_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
155 | + {'related_name': "'refs_from'", 'db_column': "'l_id_do'", | |
156 | + 'to': "orm['dictionary.Lexeme']"}), | |
157 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
158 | + {'to': "orm['dictionary.CrossReferenceType']", | |
159 | + 'db_column': "'typods_id'"}) | |
94 | 160 | }, |
95 | 161 | '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': "orm['dictionary.PartOfSpeech']"}), | |
99 | - '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': "orm['dictionary.PartOfSpeech']"}) | |
162 | + 'Meta': {'object_name': 'CrossReferenceType', | |
163 | + 'db_table': "'typyodsylaczy'"}, | |
164 | + 'desc': ('django.db.models.fields.CharField', [], | |
165 | + {'max_length': '40', 'db_column': "'naglowek'"}), | |
166 | + 'from_pos': ('django.db.models.fields.related.ForeignKey', [], | |
167 | + {'related_name': "'crtype_to'", 'db_column': "'pos1'", | |
168 | + 'to': "orm['dictionary.PartOfSpeech']"}), | |
169 | + 'id': ( | |
170 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
171 | + 'index': ('django.db.models.fields.IntegerField', [], | |
172 | + {'db_column': "'kolejnosc'"}), | |
173 | + 'symbol': ('django.db.models.fields.CharField', [], | |
174 | + {'max_length': '10', 'db_column': "'typods'"}), | |
175 | + 'to_pos': ('django.db.models.fields.related.ForeignKey', [], | |
176 | + {'related_name': "'crtype_from'", 'db_column': "'pos2'", | |
177 | + 'to': "orm['dictionary.PartOfSpeech']"}) | |
103 | 178 | }, |
104 | 179 | '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': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
107 | - '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': "orm['dictionary.Pattern']"}), | |
110 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "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'}) | |
180 | + 'Meta': {'ordering': "['index']", | |
181 | + 'unique_together': "(('pattern', 'base_form_label', 'index'),)", | |
182 | + 'object_name': 'Ending', 'db_table': "'zakonczenia'"}, | |
183 | + 'base_form_label': ( | |
184 | + 'django.db.models.fields.related.ForeignKey', [], | |
185 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
186 | + 'id': ( | |
187 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
188 | + 'index': ('django.db.models.fields.IntegerField', [], | |
189 | + {'db_column': "'zind'"}), | |
190 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
191 | + {'related_name': "'endings'", 'db_column': "'w_id'", | |
192 | + 'to': "orm['dictionary.Pattern']"}), | |
193 | + 'qualifiers': ( | |
194 | + 'django.db.models.fields.related.ManyToManyField', [], | |
195 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
196 | + 'db_table': "'kwalifikatory_zakonczen'", 'blank': 'True'}), | |
197 | + 'string': ('django.db.models.fields.CharField', [], | |
198 | + {'max_length': '16', 'db_column': "'zak'", 'blank': 'True'}) | |
112 | 199 | }, |
113 | 200 | 'dictionary.history': { |
114 | 201 | '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 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
118 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "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': "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': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
202 | + 'column_name': ('django.db.models.fields.CharField', [], | |
203 | + {'max_length': '120', 'db_column': "'column_name_'", | |
204 | + 'blank': 'True'}), | |
205 | + 'column_ord': ('django.db.models.fields.IntegerField', [], | |
206 | + {'db_column': "'ordinal_position_of_column_'"}), | |
207 | + 'id': ( | |
208 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
209 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
210 | + {'to': "orm['dictionary.Lexeme']", 'null': 'True', | |
211 | + 'db_column': "'lexeme_id_'", 'blank': 'True'}), | |
212 | + 'new_value': ('django.db.models.fields.TextField', [], | |
213 | + {'db_column': "'new_value_'", 'blank': 'True'}), | |
214 | + 'old_value': ('django.db.models.fields.TextField', [], | |
215 | + {'db_column': "'old_value_'", 'blank': 'True'}), | |
216 | + 'operation': ('django.db.models.fields.CharField', [], | |
217 | + {'max_length': '120', 'db_column': "'operation_'"}), | |
218 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
219 | + {'to': "orm['dictionary.Pattern']", 'null': 'True', | |
220 | + 'db_column': "'pattern_id_'", 'blank': 'True'}), | |
221 | + 'row_id': ( | |
222 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'id_'"}), | |
223 | + 'table_name': ('django.db.models.fields.CharField', [], | |
224 | + {'max_length': '120', 'db_column': "'table_name_'"}), | |
225 | + 'table_oid': ('django.db.models.fields.IntegerField', [], | |
226 | + {'db_column': "'table_oid_'"}), | |
227 | + 'timestamp': ('django.db.models.fields.DateTimeField', [], | |
228 | + {'db_column': "'timestamp_'"}), | |
229 | + 'transaction_began': ('django.db.models.fields.DateTimeField', [], | |
230 | + {'db_column': "'transaction_began_'"}), | |
231 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
232 | + {'to': "orm['auth.User']", 'db_column': "'user_id_'"}) | |
129 | 233 | }, |
130 | 234 | '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': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
133 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
134 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
135 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
235 | + 'Meta': {'unique_together': "(['entry', 'part_of_speech'],)", | |
236 | + 'object_name': 'InflectionCharacteristic', 'db_table': "'charfle'"}, | |
237 | + 'basic_form_label': ( | |
238 | + 'django.db.models.fields.related.ForeignKey', [], | |
239 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
240 | + 'entry': ('django.db.models.fields.CharField', [], | |
241 | + {'max_length': '16', 'db_column': "'charfl'", 'blank': 'True'}), | |
242 | + 'id': ( | |
243 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
244 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
245 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}) | |
136 | 246 | }, |
137 | 247 | 'dictionary.inputform': { |
138 | 248 | 'Meta': {'object_name': 'InputForm'}, |
139 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
140 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
141 | - 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InputLexeme']"}) | |
249 | + 'form': ('django.db.models.fields.CharField', [], | |
250 | + {'max_length': '64', 'db_index': 'True'}), | |
251 | + 'id': ( | |
252 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
253 | + 'input_lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
254 | + {'to': "orm['dictionary.InputLexeme']"}) | |
142 | 255 | }, |
143 | 256 | 'dictionary.inputlexeme': { |
144 | 257 | 'Meta': {'object_name': 'InputLexeme'}, |
145 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_index': 'True'}), | |
146 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
258 | + 'entry': ('django.db.models.fields.CharField', [], | |
259 | + {'max_length': '64', 'db_index': 'True'}), | |
260 | + 'id': ( | |
261 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | |
147 | 262 | }, |
148 | 263 | 'dictionary.lexeme': { |
149 | 264 | 'Meta': {'object_name': 'Lexeme', 'db_table': "'leksemy'"}, |
150 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
151 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
152 | - 'entry': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", 'blank': 'True'}), | |
153 | - 'entry_suffix': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
154 | - 'gloss': ('django.db.models.fields.TextField', [], {'db_column': "'glosa'", 'blank': 'True'}), | |
155 | - 'homonym_number': ('django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
156 | - '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': "orm['dictionary.Vocabulary']"}), | |
160 | - 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
161 | - 'patterns': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Pattern']", 'through': "orm['dictionary.LexemeInflectionPattern']", 'symmetrical': 'False'}), | |
162 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
163 | - 'responsible': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
164 | - 'source': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
165 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8', 'db_column': "'status'"}) | |
265 | + 'comment': ('django.db.models.fields.TextField', [], | |
266 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
267 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
268 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
269 | + 'entry': ('django.db.models.fields.CharField', [], | |
270 | + {'db_index': 'True', 'max_length': '64', 'db_column': "'haslo'", | |
271 | + 'blank': 'True'}), | |
272 | + 'entry_suffix': ('django.db.models.fields.CharField', [], | |
273 | + {'max_length': '16', 'db_column': "'haslosuf'", 'blank': 'True'}), | |
274 | + 'gloss': ('django.db.models.fields.TextField', [], | |
275 | + {'db_column': "'glosa'", 'blank': 'True'}), | |
276 | + 'homonym_number': ( | |
277 | + 'django.db.models.fields.IntegerField', [], {'db_column': "'hom'"}), | |
278 | + 'id': ( | |
279 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
280 | + 'last_modified': ('django.db.models.fields.DateTimeField', [], | |
281 | + {'auto_now': 'True', 'db_column': "'data_modyfikacji'", | |
282 | + 'blank': 'True'}), | |
283 | + 'note': ('django.db.models.fields.TextField', [], | |
284 | + {'db_column': "'nota'", 'blank': 'True'}), | |
285 | + 'owner_vocabulary': ( | |
286 | + 'django.db.models.fields.related.ForeignKey', [], | |
287 | + {'related_name': "'owned_lexemes'", 'db_column': "'slownik'", | |
288 | + 'to': "orm['dictionary.Vocabulary']"}), | |
289 | + 'part_of_speech': ('django.db.models.fields.related.ForeignKey', [], | |
290 | + {'to': "orm['dictionary.PartOfSpeech']", 'db_column': "'pos'"}), | |
291 | + 'patterns': ('django.db.models.fields.related.ManyToManyField', [], | |
292 | + {'to': "orm['dictionary.Pattern']", | |
293 | + 'through': "orm['dictionary.LexemeInflectionPattern']", | |
294 | + 'symmetrical': 'False'}), | |
295 | + 'qualifiers': ( | |
296 | + 'django.db.models.fields.related.ManyToManyField', [], | |
297 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
298 | + 'db_table': "'kwalifikatory_leksemow'", 'blank': 'True'}), | |
299 | + 'responsible': ('django.db.models.fields.related.ForeignKey', [], | |
300 | + {'to': "orm['auth.User']", 'null': 'True', | |
301 | + 'db_column': "'odpowiedzialny'", 'blank': 'True'}), | |
302 | + 'source': ('django.db.models.fields.CharField', [], | |
303 | + {'max_length': '32', 'db_column': "'zrodlo'", 'blank': 'True'}), | |
304 | + 'status': ('django.db.models.fields.CharField', [], | |
305 | + {'max_length': '8', 'db_column': "'status'"}) | |
166 | 306 | }, |
167 | 307 | 'dictionary.lexemeassociation': { |
168 | - 'Meta': {'object_name': 'LexemeAssociation', 'db_table': "'leksemy_w_slownikach'"}, | |
169 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
170 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
171 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
308 | + 'Meta': {'object_name': 'LexemeAssociation', | |
309 | + 'db_table': "'leksemy_w_slownikach'"}, | |
310 | + 'id': ( | |
311 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
312 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
313 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
314 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
315 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
172 | 316 | }, |
173 | 317 | 'dictionary.lexemeform': { |
174 | 318 | 'Meta': {'object_name': 'LexemeForm'}, |
175 | - 'form': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}), | |
176 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
177 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']"}) | |
319 | + 'form': ('django.db.models.fields.CharField', [], | |
320 | + {'max_length': '128', 'db_index': 'True'}), | |
321 | + 'id': ( | |
322 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
323 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
324 | + {'to': "orm['dictionary.Lexeme']"}) | |
178 | 325 | }, |
179 | 326 | 'dictionary.lexemeinflectionpattern': { |
180 | - 'Meta': {'ordering': "['index']", 'unique_together': "(('lexeme', 'index'),)", 'object_name': 'LexemeInflectionPattern', 'db_table': "'odmieniasie'"}, | |
181 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
182 | - 'index': ('django.db.models.fields.IntegerField', [], {'db_column': "'oind'"}), | |
183 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
184 | - 'lexeme': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
185 | - 'pattern': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
186 | - 'qualifiers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
187 | - 'root': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'rdzen'"}) | |
327 | + 'Meta': {'ordering': "['index']", | |
328 | + 'unique_together': "(('lexeme', 'index'),)", | |
329 | + 'object_name': 'LexemeInflectionPattern', | |
330 | + 'db_table': "'odmieniasie'"}, | |
331 | + 'id': ( | |
332 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
333 | + 'index': ('django.db.models.fields.IntegerField', [], | |
334 | + {'db_column': "'oind'"}), | |
335 | + 'inflection_characteristic': ( | |
336 | + 'django.db.models.fields.related.ForeignKey', [], | |
337 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
338 | + 'db_column': "'charfl'"}), | |
339 | + 'lexeme': ('django.db.models.fields.related.ForeignKey', [], | |
340 | + {'to': "orm['dictionary.Lexeme']", 'db_column': "'l_id'"}), | |
341 | + 'pattern': ('django.db.models.fields.related.ForeignKey', [], | |
342 | + {'to': "orm['dictionary.Pattern']", 'db_column': "'w_id'"}), | |
343 | + 'qualifiers': ( | |
344 | + 'django.db.models.fields.related.ManyToManyField', [], | |
345 | + {'to': "orm['dictionary.Qualifier']", 'symmetrical': 'False', | |
346 | + 'db_table': "'kwalifikatory_odmieniasiow'", 'blank': 'True'}), | |
347 | + 'root': ('django.db.models.fields.CharField', [], | |
348 | + {'max_length': '64', 'db_column': "'rdzen'"}) | |
188 | 349 | }, |
189 | 350 | 'dictionary.lexicalclass': { |
190 | 351 | 'Meta': {'object_name': 'LexicalClass', 'db_table': "'czescimowy'"}, |
191 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
352 | + 'symbol': ('django.db.models.fields.CharField', [], | |
353 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'czm'"}) | |
192 | 354 | }, |
193 | 355 | 'dictionary.paradygmatywsjp': { |
194 | - 'Meta': {'object_name': 'ParadygmatyWSJP', 'db_table': "'paradygmatywsjp'"}, | |
195 | - 'charfl': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
356 | + 'Meta': {'object_name': 'ParadygmatyWSJP', | |
357 | + 'db_table': "'paradygmatywsjp'"}, | |
358 | + 'charfl': ('django.db.models.fields.related.ForeignKey', [], | |
359 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
360 | + 'db_column': "'charfl'"}), | |
196 | 361 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
197 | 362 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
198 | - 'efobaz': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
199 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
363 | + 'efobaz': ('django.db.models.fields.related.ForeignKey', [], | |
364 | + {'to': "orm['dictionary.BaseFormLabel']", 'db_column': "'efobaz'"}), | |
365 | + 'id': ( | |
366 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
200 | 367 | 'kskl': ('django.db.models.fields.IntegerField', [], {}), |
201 | 368 | 'morf': ('django.db.models.fields.TextField', [], {}), |
202 | - 'podparad': ('django.db.models.fields.CharField', [], {'max_length': '4', 'blank': 'True'}), | |
203 | - 'pref': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
369 | + 'podparad': ('django.db.models.fields.CharField', [], | |
370 | + {'max_length': '4', 'blank': 'True'}), | |
371 | + 'pref': ('django.db.models.fields.CharField', [], | |
372 | + {'max_length': '20', 'blank': 'True'}), | |
204 | 373 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
205 | 374 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
206 | - 'suf': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), | |
207 | - 'typr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
208 | - 'wariant': ('django.db.models.fields.CharField', [], {'max_length': '4'}) | |
375 | + 'suf': ('django.db.models.fields.CharField', [], | |
376 | + {'max_length': '20', 'blank': 'True'}), | |
377 | + 'typr': ('django.db.models.fields.related.ForeignKey', [], | |
378 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typr'"}), | |
379 | + 'wariant': ( | |
380 | + 'django.db.models.fields.CharField', [], {'max_length': '4'}) | |
209 | 381 | }, |
210 | 382 | 'dictionary.partofspeech': { |
211 | - 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', 'db_table': "'klasygramatyczne'"}, | |
212 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
213 | - 'symbol': ('django.db.models.fields.CharField', [], {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
383 | + 'Meta': {'ordering': "['symbol']", 'object_name': 'PartOfSpeech', | |
384 | + 'db_table': "'klasygramatyczne'"}, | |
385 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
386 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}), | |
387 | + 'symbol': ('django.db.models.fields.CharField', [], | |
388 | + {'max_length': '16', 'primary_key': 'True', 'db_column': "'pos'"}) | |
214 | 389 | }, |
215 | 390 | 'dictionary.pattern': { |
216 | - 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', 'db_table': "'wzory'"}, | |
217 | - 'basic_form_ending': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
218 | - 'comment': ('django.db.models.fields.TextField', [], {'db_column': "'komentarz'", 'blank': 'True'}), | |
219 | - 'example': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'przyklad'"}), | |
220 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
221 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
222 | - 'status': ('django.db.models.fields.CharField', [], {'max_length': '8'}), | |
223 | - 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
391 | + 'Meta': {'ordering': "['name']", 'object_name': 'Pattern', | |
392 | + 'db_table': "'wzory'"}, | |
393 | + 'basic_form_ending': ('django.db.models.fields.CharField', [], | |
394 | + {'max_length': '32', 'db_column': "'zakp'", 'blank': 'True'}), | |
395 | + 'comment': ('django.db.models.fields.TextField', [], | |
396 | + {'db_column': "'komentarz'", 'blank': 'True'}), | |
397 | + 'example': ('django.db.models.fields.CharField', [], | |
398 | + {'max_length': '64', 'db_column': "'przyklad'"}), | |
399 | + 'id': ( | |
400 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
401 | + 'name': ('django.db.models.fields.CharField', [], | |
402 | + {'unique': 'True', 'max_length': '32', 'db_column': "'w_id'"}), | |
403 | + 'status': ( | |
404 | + 'django.db.models.fields.CharField', [], {'max_length': '8'}), | |
405 | + 'type': ('django.db.models.fields.related.ForeignKey', [], | |
406 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'typ'"}) | |
224 | 407 | }, |
225 | 408 | 'dictionary.patterntype': { |
226 | 409 | 'Meta': {'object_name': 'PatternType', 'db_table': "'typywzorow'"}, |
227 | - 'entry': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
228 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
229 | - 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
410 | + 'entry': ('django.db.models.fields.CharField', [], | |
411 | + {'max_length': '32', 'db_column': "'wtyp'", 'blank': 'True'}), | |
412 | + 'id': ( | |
413 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
414 | + 'lexical_class': ('django.db.models.fields.related.ForeignKey', [], | |
415 | + {'to': "orm['dictionary.LexicalClass']", 'db_column': "'czm'"}) | |
230 | 416 | }, |
231 | 417 | 'dictionary.qualifier': { |
232 | - 'Meta': {'ordering': "['label']", 'unique_together': "(['label', 'vocabulary'],)", 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
233 | - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'usuniety'"}), | |
234 | - 'exclusion_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', 'db_column': "'klasa'", 'blank': 'True'}), | |
235 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
236 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'kwal'"}), | |
237 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'qualifiers'", 'db_column': "'slownik'", 'to': "orm['dictionary.Vocabulary']"}) | |
418 | + 'Meta': {'ordering': "['label']", | |
419 | + 'unique_together': "(['label', 'vocabulary'],)", | |
420 | + 'object_name': 'Qualifier', 'db_table': "'kwalifikatory'"}, | |
421 | + 'deleted': ('django.db.models.fields.BooleanField', [], | |
422 | + {'default': 'False', 'db_column': "'usuniety'"}), | |
423 | + 'exclusion_class': ( | |
424 | + 'django.db.models.fields.related.ForeignKey', [], | |
425 | + {'to': "orm['dictionary.QualifierExclusionClass']", 'null': 'True', | |
426 | + 'db_column': "'klasa'", 'blank': 'True'}), | |
427 | + 'id': ( | |
428 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
429 | + 'label': ('django.db.models.fields.CharField', [], | |
430 | + {'max_length': '64', 'db_column': "'kwal'"}), | |
431 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
432 | + {'related_name': "'qualifiers'", 'db_column': "'slownik'", | |
433 | + 'to': "orm['dictionary.Vocabulary']"}) | |
238 | 434 | }, |
239 | 435 | 'dictionary.qualifierexclusionclass': { |
240 | - 'Meta': {'object_name': 'QualifierExclusionClass', 'db_table': "'klasy_wykluczania'"}, | |
241 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
242 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
243 | - 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
436 | + 'Meta': {'object_name': 'QualifierExclusionClass', | |
437 | + 'db_table': "'klasy_wykluczania'"}, | |
438 | + 'id': ( | |
439 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
440 | + 'name': ('django.db.models.fields.CharField', [], | |
441 | + {'unique': 'True', 'max_length': '64', 'db_column': "'nazwa'"}), | |
442 | + 'vocabulary': ('django.db.models.fields.related.ForeignKey', [], | |
443 | + {'to': "orm['dictionary.Vocabulary']", 'db_column': "'slownik'"}) | |
244 | 444 | }, |
245 | 445 | 'dictionary.savedexportdata': { |
246 | 446 | 'Meta': {'object_name': 'SavedExportData'}, |
247 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
248 | - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}), | |
447 | + 'id': ( | |
448 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
449 | + 'name': ('django.db.models.fields.CharField', [], | |
450 | + {'unique': 'True', 'max_length': '64'}), | |
249 | 451 | 'serialized_data': ('django.db.models.fields.TextField', [], {}) |
250 | 452 | }, |
251 | 453 | 'dictionary.savedfilter': { |
252 | - 'Meta': {'unique_together': "(('name', 'user'),)", 'object_name': 'SavedFilter'}, | |
253 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
254 | - 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}), | |
454 | + 'Meta': {'unique_together': "(('name', 'user'),)", | |
455 | + 'object_name': 'SavedFilter'}, | |
456 | + 'id': ( | |
457 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
458 | + 'name': ( | |
459 | + 'django.db.models.fields.CharField', [], {'max_length': '64'}), | |
255 | 460 | 'serialized_filter': ('django.db.models.fields.TextField', [], {}), |
256 | - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) | |
461 | + 'user': ('django.db.models.fields.related.ForeignKey', [], | |
462 | + {'to': "orm['auth.User']"}) | |
257 | 463 | }, |
258 | 464 | 'dictionary.tablecell': { |
259 | 465 | 'Meta': {'object_name': 'TableCell', 'db_table': "'komorki_tabel'"}, |
260 | - 'cell': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dictionary.Cell']", 'unique': 'True', 'db_column': "'k_id'"}), | |
466 | + 'cell': ('django.db.models.fields.related.OneToOneField', [], | |
467 | + {'to': "orm['dictionary.Cell']", 'unique': 'True', | |
468 | + 'db_column': "'k_id'"}), | |
261 | 469 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
262 | 470 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
263 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
471 | + 'id': ( | |
472 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
264 | 473 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
265 | 474 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}) |
266 | 475 | }, |
267 | 476 | 'dictionary.tableheader': { |
268 | - 'Meta': {'object_name': 'TableHeader', 'db_table': "'naglowki_tabel'"}, | |
477 | + 'Meta': {'object_name': 'TableHeader', | |
478 | + 'db_table': "'naglowki_tabel'"}, | |
269 | 479 | 'col': ('django.db.models.fields.IntegerField', [], {}), |
270 | 480 | 'colspan': ('django.db.models.fields.IntegerField', [], {}), |
271 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
272 | - 'label': ('django.db.models.fields.CharField', [], {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
481 | + 'id': ( | |
482 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
483 | + 'label': ('django.db.models.fields.CharField', [], | |
484 | + {'max_length': '64', 'db_column': "'nagl'", 'blank': 'True'}), | |
273 | 485 | 'row': ('django.db.models.fields.IntegerField', [], {}), |
274 | - 'row_header': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'wierszowy'"}), | |
486 | + 'row_header': ('django.db.models.fields.BooleanField', [], | |
487 | + {'default': 'False', 'db_column': "'wierszowy'"}), | |
275 | 488 | 'rowspan': ('django.db.models.fields.IntegerField', [], {}), |
276 | - 'table_template': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
489 | + 'table_template': ('django.db.models.fields.related.ForeignKey', [], | |
490 | + {'to': "orm['dictionary.TableTemplate']", 'db_column': "'st_id'"}) | |
277 | 491 | }, |
278 | 492 | 'dictionary.tabletemplate': { |
279 | - 'Meta': {'object_name': 'TableTemplate', 'db_table': "'szablony_tabel'"}, | |
280 | - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
281 | - 'inflection_characteristic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.InflectionCharacteristic']", 'db_column': "'charfl'"}), | |
282 | - 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
283 | - 'variant': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
493 | + 'Meta': {'object_name': 'TableTemplate', | |
494 | + 'db_table': "'szablony_tabel'"}, | |
495 | + 'id': ( | |
496 | + 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | |
497 | + 'inflection_characteristic': ( | |
498 | + 'django.db.models.fields.related.ForeignKey', [], | |
499 | + {'to': "orm['dictionary.InflectionCharacteristic']", | |
500 | + 'db_column': "'charfl'"}), | |
501 | + 'pattern_type': ('django.db.models.fields.related.ForeignKey', [], | |
502 | + {'to': "orm['dictionary.PatternType']", 'db_column': "'wtyp'"}), | |
503 | + 'variant': ('django.db.models.fields.related.ForeignKey', [], | |
504 | + {'to': "orm['dictionary.Variant']", 'db_column': "'wariant'"}) | |
284 | 505 | }, |
285 | 506 | 'dictionary.variant': { |
286 | 507 | 'Meta': {'object_name': 'Variant', 'db_table': "'warianty'"}, |
287 | - 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True', 'db_column': "'wariant'"}) | |
508 | + 'id': ('django.db.models.fields.CharField', [], | |
509 | + {'max_length': '32', 'primary_key': 'True', | |
510 | + 'db_column': "'wariant'"}) | |
288 | 511 | }, |
289 | 512 | 'dictionary.vocabulary': { |
290 | 513 | 'Meta': {'object_name': 'Vocabulary', 'db_table': "'slowniki'"}, |
291 | - 'classifications': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
292 | - 'editors': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}), | |
293 | - 'id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True', 'db_column': "'slownik'"}), | |
294 | - 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'vocabularies'", 'blank': 'True', 'through': "orm['dictionary.LexemeAssociation']", 'to': "orm['dictionary.Lexeme']"}), | |
295 | - 'managers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}), | |
296 | - 'viewers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", 'blank': 'True', 'to': "orm['auth.User']"}) | |
514 | + 'classifications': ( | |
515 | + 'django.db.models.fields.related.ManyToManyField', [], | |
516 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
517 | + 'blank': 'True', 'to': "orm['dictionary.Classification']"}), | |
518 | + 'editors': ('django.db.models.fields.related.ManyToManyField', [], | |
519 | + {'symmetrical': 'False', 'related_name': "'editable_vocabularies'", | |
520 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
521 | + 'id': ('django.db.models.fields.CharField', [], | |
522 | + {'max_length': '64', 'primary_key': 'True', | |
523 | + 'db_column': "'slownik'"}), | |
524 | + 'lexemes': ('django.db.models.fields.related.ManyToManyField', [], | |
525 | + {'symmetrical': 'False', 'related_name': "'vocabularies'", | |
526 | + 'blank': 'True', 'through': "orm['dictionary.LexemeAssociation']", | |
527 | + 'to': "orm['dictionary.Lexeme']"}), | |
528 | + 'managers': ('django.db.models.fields.related.ManyToManyField', [], | |
529 | + {'symmetrical': 'False', 'related_name': "'managed_vocabularies'", | |
530 | + 'blank': 'True', 'to': "orm['auth.User']"}), | |
531 | + 'viewers': ('django.db.models.fields.related.ManyToManyField', [], | |
532 | + {'symmetrical': 'False', 'related_name': "'visible_vocabularies'", | |
533 | + 'blank': 'True', 'to': "orm['auth.User']"}) | |
297 | 534 | } |
298 | 535 | } |
299 | 536 | |
... | ... |