django-handyhelpers 0.3.35__py3-none-any.whl → 0.3.36__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: django-handyhelpers
3
- Version: 0.3.35
3
+ Version: 0.3.36
4
4
  Summary: A collection of handy utilities to support django operations
5
5
  Home-page: https://github.com/davidslusser/django-handyhelpers
6
- Download-URL: https://github.com/davidslusser/django-handyhelpers/archive/0.3.35.tar.gz
6
+ Download-URL: https://github.com/davidslusser/django-handyhelpers/archive/0.3.36.tar.gz
7
7
  Author: David Slusser
8
8
  Author-email: dbslusser@gmail.com
9
9
  License: GPL-3.0
@@ -1,4 +1,4 @@
1
- handyhelpers/__init__.py,sha256=iG_4vQHYpWBUgUFNqhBuKUKVVoa6_RA6_lX75yJfzXg,406
1
+ handyhelpers/__init__.py,sha256=s1RjXJhgyOabaPRVAoc2dCauC8alrOy_AaNHapDgbeg,406
2
2
  handyhelpers/apps.py,sha256=g6mXn-5BENf48vY_Qz2FhAABJPBB3EIJXlNM33v6-v8,485
3
3
  handyhelpers/checks.py,sha256=8LXb106sIBNV3fNIHDIW-UcixJk8emgbtFkIlKG5ZGM,578
4
4
  handyhelpers/context_processors.py,sha256=31-j4WD-xaJp9JU_VbkbyUyWxI2UuDGW9qA805fEGBs,527
@@ -10,7 +10,7 @@ handyhelpers/middleware.py,sha256=qcnyw5cIjJ4WBI3sYTqeA2c3JkJIi4HZkz-NaH-DfPo,13
10
10
  handyhelpers/models.py,sha256=vR5Rc_ogSCnt_B_pVLwaqmyHW10GuW1DD2-kHI4eJKk,1228
11
11
  handyhelpers/permissions.py,sha256=dL_1YuPmdqQtmj7lvM6L2SkxB7TII1dVL8Pjxko7E-8,5486
12
12
  handyhelpers/querysets.py,sha256=_DrjCZ5UALBeVWkZCF-T6RgA5_lnGzJcj7pgXNzPM_U,2797
13
- handyhelpers/serializers.py,sha256=kWKUyTjbu2QfsYSCl2j1F7cHcc_x3VFSYpG_NBnPAIs,1820
13
+ handyhelpers/serializers.py,sha256=FlJ7TcEVAOPUkOHjZAj_5W4OG-lI3RQJ7Xf7_ikjjMY,1833
14
14
  handyhelpers/urls.py,sha256=6j0AOc2nBXmkXzM7pPWP045DQyGCIVw1DcYQnNNDU0w,1559
15
15
  handyhelpers/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  handyhelpers/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -22,7 +22,7 @@ handyhelpers/management/commands/admin_templates/admin.jinja,sha256=-iPDYb0iFoBJ
22
22
  handyhelpers/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  handyhelpers/mixins/form_mixins.py,sha256=4nGWFfK8E3XDBSTICIci0fLGZyQLNRiyvaq2zfjk-ug,3199
24
24
  handyhelpers/mixins/model_mixins.py,sha256=T5nnpzXqtFopVOXqMsXfKMDvSKVUUTKOUXiQUWv_hJg,794
25
- handyhelpers/mixins/serializer_mixins.py,sha256=HsRMLXrW98UVDY2S51uhNmtf0h2B9VRZgnxuDiVnp5s,1210
25
+ handyhelpers/mixins/serializer_mixins.py,sha256=5zuBL35s4bA2z_R0J8mCA-CL1xXkJ2seQChdesd_duc,1256
26
26
  handyhelpers/mixins/view_mixins.py,sha256=9iMt-R5XYS8KZxKSIUI3n7tRhS2VYFP2Ll6zg7FW7nQ,6423
27
27
  handyhelpers/mixins/viewset_mixins.py,sha256=_6BNUH81Q3tYcK7v8u8GqPlCpSo6CiTd7luKeSE6s18,6957
28
28
  handyhelpers/static/package.json,sha256=mxUcqNxnX2D8eTrvXcf7_f0L1BKhuVvBJfdHPJ3cI94,467
@@ -6919,8 +6919,8 @@ handyhelpers/views/export.py,sha256=45DP5d8L1npo39WqAqYqAnAaNthN5ILyQMIS8WWn85c,
6919
6919
  handyhelpers/views/gui.py,sha256=cPGbMu8-dE7MgYleBiPf3YLX_5AsWVtiu1s6MtEDaoo,43358
6920
6920
  handyhelpers/views/htmx.py,sha256=256Pg4B6mvLbW0dRruCkzENNgIABxyXHoegK1dutgf0,21176
6921
6921
  handyhelpers/views/report.py,sha256=UbrLOYQ6PVDPfJUStytCq1VJOD-XJh6U-ZeKiMhFNtU,15334
6922
- django_handyhelpers-0.3.35.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
6923
- django_handyhelpers-0.3.35.dist-info/METADATA,sha256=UEl058ZMwW_aar7SLmv-iNqb7grUJVRu9Un634el5ek,3534
6924
- django_handyhelpers-0.3.35.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6925
- django_handyhelpers-0.3.35.dist-info/top_level.txt,sha256=qMQVRQqXX1vYNEfuQbwWMu2J-GLo_bfLmF6mtZF5caU,13
6926
- django_handyhelpers-0.3.35.dist-info/RECORD,,
6922
+ django_handyhelpers-0.3.36.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
6923
+ django_handyhelpers-0.3.36.dist-info/METADATA,sha256=KR5Z4pxh-EufGQ9B5mDZN8m_LQ0vy1_CKKI4ffBcSn4,3534
6924
+ django_handyhelpers-0.3.36.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6925
+ django_handyhelpers-0.3.36.dist-info/top_level.txt,sha256=qMQVRQqXX1vYNEfuQbwWMu2J-GLo_bfLmF6mtZF5caU,13
6926
+ django_handyhelpers-0.3.36.dist-info/RECORD,,
handyhelpers/__init__.py CHANGED
@@ -7,7 +7,7 @@ A collection of handy utilities to support django operations.
7
7
  """
8
8
 
9
9
  __title__ = "django-handyhelpers"
10
- __version__ = "0.3.35"
10
+ __version__ = "0.3.36"
11
11
  __author__ = "David Slusser"
12
12
  __email__ = "dbslusser@gmail.com"
13
13
  __license__ = "GPL-3.0"
@@ -20,16 +20,16 @@ class FlexFieldsMixin:
20
20
  omit_param: str = getattr(settings, "HH_OMIT_PARAM", "omit")
21
21
  requested_fields = self.query_params.get(fields_param, None)
22
22
  omitted_fields = self.query_params.get(omit_param, None)
23
- if requested_fields:
24
- return {
25
- key: value
26
- for key, value in fields.items()
27
- if key in requested_fields.split(",")
28
- }
29
- elif omitted_fields:
30
- return {
31
- key: value
32
- for key, value in fields.items()
33
- if key not in requested_fields.split(",")
34
- }
23
+ if requested_fields:
24
+ return {
25
+ key: value
26
+ for key, value in fields.items()
27
+ if key in requested_fields.split(",")
28
+ }
29
+ elif omitted_fields:
30
+ return {
31
+ key: value
32
+ for key, value in fields.items()
33
+ if key not in omitted_fields.split(",")
34
+ }
35
35
  return fields
@@ -1,5 +1,5 @@
1
1
  from rest_framework import serializers
2
- from mixins.serializer_mixins import FlexFieldsMixin
2
+ from handyhelpers.mixins.serializer_mixins import FlexFieldsMixin
3
3
 
4
4
 
5
5
  class FkReadWriteField(serializers.RelatedField):