educommon 3.9.3__py3-none-any.whl → 3.9.4__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/report/constructor/base.py +24 -0
- educommon/version.conf +5 -5
- {educommon-3.9.3.dist-info → educommon-3.9.4.dist-info}/METADATA +1 -1
- {educommon-3.9.3.dist-info → educommon-3.9.4.dist-info}/RECORD +7 -7
- {educommon-3.9.3.dist-info → educommon-3.9.4.dist-info}/WHEEL +0 -0
- {educommon-3.9.3.dist-info → educommon-3.9.4.dist-info}/dependency_links.txt +0 -0
- {educommon-3.9.3.dist-info → educommon-3.9.4.dist-info}/top_level.txt +0 -0
@@ -231,6 +231,11 @@ class ColumnDescriptor:
|
|
231
231
|
)
|
232
232
|
if skip_field(descriptor.parent.model, field, accessor_name):
|
233
233
|
return True
|
234
|
+
# проверка, что связанная модель поля, не связана с родительскими моделями полей
|
235
|
+
if (getattr(field, 'related_model', None) and
|
236
|
+
field.related_model in descriptor.parent.related_field_models
|
237
|
+
):
|
238
|
+
return True
|
234
239
|
|
235
240
|
descriptor = descriptor.parent
|
236
241
|
# проверка модели источника данных
|
@@ -251,6 +256,25 @@ class ColumnDescriptor:
|
|
251
256
|
|
252
257
|
return model
|
253
258
|
|
259
|
+
@cached_property
|
260
|
+
def related_field_models(self):
|
261
|
+
"""Связанные модели полей."""
|
262
|
+
fields_models = set()
|
263
|
+
# Для первых в корне добавляем модели источника данных.
|
264
|
+
if self.parent is None:
|
265
|
+
data_source_columns = tuple(self.data_source.get_available_columns())
|
266
|
+
fields_models.update({column.model for column in data_source_columns if column.model})
|
267
|
+
fields_models.add(self.data_source.model)
|
268
|
+
|
269
|
+
# получаем поля текущего экземпляра
|
270
|
+
if self.model:
|
271
|
+
fields = self.model._meta.get_fields()
|
272
|
+
fields_models.update({field.related_model for field in fields if field.related_model})
|
273
|
+
# добавляем саму модель экземпляра, если она есть
|
274
|
+
fields_models.add(self.model)
|
275
|
+
|
276
|
+
return fields_models
|
277
|
+
|
254
278
|
@property
|
255
279
|
def accessor_name(self):
|
256
280
|
return force_str(_get_accessor_name(self.field))
|
educommon/version.conf
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
# нормальной установки обновлений.
|
5
5
|
|
6
6
|
[version]
|
7
|
-
BRANCH = tags/3.9.
|
8
|
-
VERSION = 3.9.
|
9
|
-
REVISION =
|
10
|
-
VERSION_DATE =
|
11
|
-
REVISION_DATE =
|
7
|
+
BRANCH = tags/3.9.4^0
|
8
|
+
VERSION = 3.9.4
|
9
|
+
REVISION = b525751553abee2f4deac7b1783499fb00ef29f5
|
10
|
+
VERSION_DATE = 03.04.2024
|
11
|
+
REVISION_DATE = 03.04.2024
|
@@ -1,6 +1,6 @@
|
|
1
1
|
educommon/__init__.py,sha256=fvsBDL7g8HgOTd-JHOh7TSvMcnUauvGVgPuyA2Z9hUI,419
|
2
2
|
educommon/thread_data.py,sha256=n0XtdesP9H92O3rJ8K6fVnJLiHqyJEfh2xpuT36wzxs,61
|
3
|
-
educommon/version.conf,sha256=
|
3
|
+
educommon/version.conf,sha256=45BReSu8CR7Bw853URhL6tptlqRIL7Bo_BbW3NJj4VY,450
|
4
4
|
educommon/about/README.rst,sha256=U48UW5jv-8qHyaV56atzzkNMvzHKXVcWSb_NR06PnMo,2685
|
5
5
|
educommon/about/__init__.py,sha256=H1W0IgW-qX9LCZ49GOJzHdmQGHhh-MA6U1xmNx7WnfM,132
|
6
6
|
educommon/about/apps.py,sha256=GrpJAOE2sF0ukWsqugP_WJS88DO4aL-T3kTLprrJrcA,259
|
@@ -238,7 +238,7 @@ educommon/report/constructor/README.rst,sha256=M6bnt3eAdRMUSIbRXdbuleron11RajRmT
|
|
238
238
|
educommon/report/constructor/__init__.py,sha256=sMDEr17Etf69p4NKRelFv9ySrNT6JulFO1IByVfZA1w,1252
|
239
239
|
educommon/report/constructor/app_meta.py,sha256=4hFKVlGCO4Mlu46fCw5k7iD9kSse8b9MQt3tRV5WyfE,200
|
240
240
|
educommon/report/constructor/apps.py,sha256=NUp1dCkzHduZFXT6XPDQPasAei3Bs3TYdEQzXhqn1J8,371
|
241
|
-
educommon/report/constructor/base.py,sha256=
|
241
|
+
educommon/report/constructor/base.py,sha256=QUwT-hksW-ho0t-fEXslJ6cpTVRrjLFAU6guCDcqc7Y,27289
|
242
242
|
educommon/report/constructor/config.py,sha256=6PjPv4A3zww_DnZqE-aj72zduW7cZqbzVwuCP8JDsYg,1058
|
243
243
|
educommon/report/constructor/constants.py,sha256=VF3tu6vEWrN37oPyipD3LGCElbaY2JHGaKy7AxUbQIU,3381
|
244
244
|
educommon/report/constructor/exceptions.py,sha256=NL2mQggBHbkHaQFKpr9mTj7R5IVtxtCRKzJ00dgfTqM,1287
|
@@ -342,8 +342,8 @@ educommon/ws_log/smev/exceptions.py,sha256=lmy7o2T3dJkqgIhG07qyh5yPqO3qZAYABuT4J
|
|
342
342
|
educommon/ws_log/templates/report/smev_logs.xlsx,sha256=nnYgB0Z_ix8HoxsRICjsZfFRQBdra-5Gd8nWhCxTjYg,10439
|
343
343
|
educommon/ws_log/templates/ui-js/smev-logs-list-window.js,sha256=AGup3D8GTJSY9WdDPj0zBJeYQBFOmGgcbxPOJbKK-nY,513
|
344
344
|
educommon/ws_log/templates/ui-js/smev-logs-report-setting-window.js,sha256=nQ7QYK9frJcE7g7kIt6INg9TlEEJAPPayBJgRaoTePA,1103
|
345
|
-
educommon-3.9.
|
346
|
-
educommon-3.9.
|
347
|
-
educommon-3.9.
|
348
|
-
educommon-3.9.
|
349
|
-
educommon-3.9.
|
345
|
+
educommon-3.9.4.dist-info/METADATA,sha256=2hmH1DlhM909yL-K__dPJVJVZr_yCDrhO9HBNGZsXu8,1486
|
346
|
+
educommon-3.9.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
347
|
+
educommon-3.9.4.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
|
348
|
+
educommon-3.9.4.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
|
349
|
+
educommon-3.9.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|