great-components 2.7.3__py3-none-any.whl → 2.7.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.
@@ -87,7 +87,17 @@ class DirectoryComponentsFieldMixin:
87
87
 
88
88
  @property
89
89
  def widget_css_classes(self):
90
- return self.widget.attrs['class']
90
+ try:
91
+ return self.widget.attrs['class']
92
+ except (KeyError, AttributeError):
93
+ return ''
94
+
95
+ @property
96
+ def label_css_classes(self):
97
+ try:
98
+ return self.widget.attrs['label-class']
99
+ except (KeyError, AttributeError):
100
+ return ''
91
101
 
92
102
  def get_bound_field(self, form, field_name):
93
103
  return DirectoryComponentsBoundField(form, self, field_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: great-components
3
- Version: 2.7.3
3
+ Version: 2.7.4
4
4
  Summary: Shared components library for Great services.
5
5
  Home-page: https://github.com/uktrade/great-components
6
6
  Author: DIT
@@ -10,7 +10,7 @@ great_components/middleware.py,sha256=9dVTTbMlTBnwcmDB3CDi6DGQrxiecOwY-Dg7lEOC_O
10
10
  great_components/mixins.py,sha256=efahQ0hbHeNcS2JwhltAFcLbUYNAZfG8JALzPZyEl8U,4226
11
11
  great_components/views.py,sha256=N2F6kvJUMmW9OQCIPcH16KMLlNhD_nrOTz_m0bnExZo,544
12
12
  great_components/forms/__init__.py,sha256=hKKA3w8GBglzmszrK3-z3n8DSRBKcBe9_TLrC52YbLI,153
13
- great_components/forms/fields.py,sha256=mr7AmIwLzNyTbt7iEiwIdseEAtNl6THXS3D56g9Q30g,6135
13
+ great_components/forms/fields.py,sha256=QZjU3ierwb05CDESUMKCEly5w6wJpLHCa4B--hcmQ7Q,6395
14
14
  great_components/forms/forms.py,sha256=vWfSuI4li0Wnw1KBmc2JEEMuQE7qZb9PXr0fJTK985w,1462
15
15
  great_components/forms/widgets.py,sha256=U0oDJ3O6YvMK7d_PDXKNuYNxKHH2ehWF91yvL2P-yjs,4339
16
16
  great_components/janitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -634,8 +634,8 @@ great_components/templates/great_components/header_footer/search.html,sha256=SVU
634
634
  great_components/templates/great_components/header_footer/sso_login.html,sha256=IasiMYwuaTDbwpwYa2gLJcEQRIqZcZHGCpeh7Awvw9M,463
635
635
  great_components/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
636
636
  great_components/templatetags/great_components.py,sha256=O_zVpOvZMHwhCpyq4JmmYu_iGwvaFsIP6lDn_ihtOVs,12173
637
- great_components-2.7.3.dist-info/LICENSE,sha256=q4QjlbTN37umB_xq3DRmS0qvT2tMO_5_-u0WWzYcDQE,1091
638
- great_components-2.7.3.dist-info/METADATA,sha256=4iJfSUioizef4-f3nc4ytPj9w_ibFbbG6mdFhSUCgqY,10545
639
- great_components-2.7.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
640
- great_components-2.7.3.dist-info/top_level.txt,sha256=aI2xcjZzpL8o3QuUGQB5YkqHOknVkFwQOSZQiaNqRHU,22
641
- great_components-2.7.3.dist-info/RECORD,,
637
+ great_components-2.7.4.dist-info/LICENSE,sha256=q4QjlbTN37umB_xq3DRmS0qvT2tMO_5_-u0WWzYcDQE,1091
638
+ great_components-2.7.4.dist-info/METADATA,sha256=PvNahYErt688eth2hCwTQv4a6kDyuwnMVg7EQCHrq9k,10545
639
+ great_components-2.7.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
640
+ great_components-2.7.4.dist-info/top_level.txt,sha256=aI2xcjZzpL8o3QuUGQB5YkqHOknVkFwQOSZQiaNqRHU,22
641
+ great_components-2.7.4.dist-info/RECORD,,