educommon 3.9.8__py3-none-any.whl → 3.9.9__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.
@@ -1042,9 +1042,15 @@ class DataLoader:
1042
1042
  ).exclude(
1043
1043
  column_id__in=self._ignored_columns_ids
1044
1044
  ).exists():
1045
- result = result.filter(
1046
- self._data_filterer.get_orm_filters()
1047
- ).distinct('pk')
1045
+ # Является ли модель древовидной(mptt - Modified Preorder Tree Traversal)
1046
+ if hasattr(self._data_source.model, '_mptt_meta'):
1047
+ result = result.filter(
1048
+ self._data_filterer.get_orm_filters()
1049
+ ).distinct(self._data_source.model._mptt_meta.tree_id_attr)
1050
+ else:
1051
+ result = result.filter(
1052
+ self._data_filterer.get_orm_filters()
1053
+ ).distinct('pk')
1048
1054
  # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1049
1055
  # Добавление параметров включения вложенных учреждений.
1050
1056
 
educommon/version.conf CHANGED
@@ -4,8 +4,8 @@
4
4
  # нормальной установки обновлений.
5
5
 
6
6
  [version]
7
- BRANCH = tags/3.9.8^0
8
- VERSION = 3.9.8
9
- REVISION = f87b19df49230862f46efc66045849429797b4a4
10
- VERSION_DATE = 04.06.2024
11
- REVISION_DATE = 04.06.2024
7
+ BRANCH = tags/3.9.9^0
8
+ VERSION = 3.9.9
9
+ REVISION = 2d3b71332d666fd04710cba539889684db787d3b
10
+ VERSION_DATE = 02.07.2024
11
+ REVISION_DATE = 02.07.2024
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: educommon
3
- Version: 3.9.8
3
+ Version: 3.9.9
4
4
  Summary: Общая кодовая база для проектов БЦ Образование
5
5
  Home-page: https://stash.bars-open.ru/projects/EDUBASE/repos/educommon
6
6
  Author: BARS Group
@@ -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=3CBF_KiYDEDO446tKaYHM4VfqJU8f-dh1u-IJ8mBDYg,450
3
+ educommon/version.conf,sha256=q0D3hPkCDlx0wZTT80WA8kCxLNImlP4GI6vr_-h8jfs,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
@@ -252,7 +252,7 @@ educommon/report/constructor/utils.py,sha256=lXfKGlqPhmlnSLg4O0FTxRd3kLQtx3WlLQ7
252
252
  educommon/report/constructor/validators.py,sha256=E_VKNz0Z3YqJOJTjd7OdZXFMDnW8UUiVUIH9Jk6Irtw,524
253
253
  educommon/report/constructor/builders/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
254
254
  educommon/report/constructor/builders/excel/__init__.py,sha256=ZjiilnR4FRJm0DM06G3yKHBEDAPXs5JvuPO3JOg2FB8,104
255
- educommon/report/constructor/builders/excel/_base.py,sha256=e3wTeUStC9eLn23afQGjG1Kp7jr4kjuyRt7dUkJMYVI,55789
255
+ educommon/report/constructor/builders/excel/_base.py,sha256=JHfPgyQjaOhuOI9MpZ4k2_K_tR8AzQTEoNCVnli8lbo,56169
256
256
  educommon/report/constructor/builders/excel/_header.py,sha256=JUHHlBgkENPatp34csKrefteHsdbeCdJzqzSdTtof8M,4758
257
257
  educommon/report/constructor/builders/excel/constants.py,sha256=SM5OEkd7CMrGhuCpMWIdZGy-R1NAUB06973QnECayR0,28
258
258
  educommon/report/constructor/builders/excel/product.py,sha256=NsfjhUViZyi_XpDjiUJDwfgHVRlE98v40RMAa6mpAzk,6229
@@ -344,8 +344,8 @@ educommon/ws_log/smev/exceptions.py,sha256=lmy7o2T3dJkqgIhG07qyh5yPqO3qZAYABuT4J
344
344
  educommon/ws_log/templates/report/smev_logs.xlsx,sha256=nnYgB0Z_ix8HoxsRICjsZfFRQBdra-5Gd8nWhCxTjYg,10439
345
345
  educommon/ws_log/templates/ui-js/smev-logs-list-window.js,sha256=AGup3D8GTJSY9WdDPj0zBJeYQBFOmGgcbxPOJbKK-nY,513
346
346
  educommon/ws_log/templates/ui-js/smev-logs-report-setting-window.js,sha256=nQ7QYK9frJcE7g7kIt6INg9TlEEJAPPayBJgRaoTePA,1103
347
- educommon-3.9.8.dist-info/METADATA,sha256=h-skqLGDNSTS3LMd7AX90T-N_R0NUJYwfs73kkoBCKE,1562
348
- educommon-3.9.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
349
- educommon-3.9.8.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
350
- educommon-3.9.8.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
351
- educommon-3.9.8.dist-info/RECORD,,
347
+ educommon-3.9.9.dist-info/METADATA,sha256=3pTRDtYLzRZF949mWKXop0DcwX8K0Qf3kFlj8X_0xeQ,1562
348
+ educommon-3.9.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
349
+ educommon-3.9.9.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
350
+ educommon-3.9.9.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
351
+ educommon-3.9.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5