educommon 3.10.0__py3-none-any.whl → 3.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- educommon/contingent/actions.py +10 -3
- educommon/contingent/base.py +1 -1
- educommon/contingent/json_data/oksm.json +1230 -724
- educommon/django/db/fields.py +5 -1
- educommon/utils/phone_number/__init__.py +0 -0
- educommon/utils/phone_number/enums.py +47 -0
- educommon/utils/phone_number/modelfields.py +91 -0
- educommon/utils/phone_number/phone_number.py +273 -0
- educommon/utils/phone_number/validators.py +92 -0
- educommon/version.conf +5 -5
- {educommon-3.10.0.dist-info → educommon-3.11.0.dist-info}/METADATA +1 -1
- {educommon-3.10.0.dist-info → educommon-3.11.0.dist-info}/RECORD +15 -10
- {educommon-3.10.0.dist-info → educommon-3.11.0.dist-info}/WHEEL +1 -1
- {educommon-3.10.0.dist-info → educommon-3.11.0.dist-info}/dependency_links.txt +0 -0
- {educommon-3.10.0.dist-info → educommon-3.11.0.dist-info}/top_level.txt +0 -0
educommon/contingent/actions.py
CHANGED
@@ -68,21 +68,28 @@ class OKSMPack(ObjectPack):
|
|
68
68
|
'header': 'Краткое наименование страны',
|
69
69
|
'sortable': True,
|
70
70
|
'searchable': True,
|
71
|
-
'width': 2
|
71
|
+
'width': 2,
|
72
72
|
},
|
73
73
|
{
|
74
74
|
'data_index': 'code',
|
75
75
|
'header': 'Код',
|
76
76
|
'sortable': True,
|
77
77
|
'searchable': True,
|
78
|
-
'width': 1
|
78
|
+
'width': 1,
|
79
|
+
},
|
80
|
+
{
|
81
|
+
'data_index': 'alpha_3',
|
82
|
+
'header': 'Буквенный код',
|
83
|
+
'sortable': True,
|
84
|
+
'searchable': True,
|
85
|
+
'width': 1,
|
79
86
|
},
|
80
87
|
{
|
81
88
|
'data_index': 'full_name',
|
82
89
|
'header': 'Полное наименование',
|
83
90
|
'sortable': True,
|
84
91
|
'searchable': True,
|
85
|
-
'width': 3
|
92
|
+
'width': 3,
|
86
93
|
}
|
87
94
|
]
|
88
95
|
|
educommon/contingent/base.py
CHANGED
@@ -42,7 +42,7 @@ class BaseCatalogVirtualModel(VirtualModel):
|
|
42
42
|
из JSON файла. Каждая запись может содержать множество полей.
|
43
43
|
JSON файл при этом должен иметь определенную структуру
|
44
44
|
[
|
45
|
-
// Запись в
|
45
|
+
// Запись в модели
|
46
46
|
{
|
47
47
|
"field_name1": value1,
|
48
48
|
"field_name2": value2,
|