django-restit 4.2.163__py3-none-any.whl → 4.2.164__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- account/models/device.py +3 -0
- {django_restit-4.2.163.dist-info → django_restit-4.2.164.dist-info}/METADATA +1 -1
- {django_restit-4.2.163.dist-info → django_restit-4.2.164.dist-info}/RECORD +6 -6
- rest/__init__.py +1 -1
- {django_restit-4.2.163.dist-info → django_restit-4.2.164.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.163.dist-info → django_restit-4.2.164.dist-info}/WHEEL +0 -0
account/models/device.py
CHANGED
@@ -84,6 +84,9 @@ class MemberDevice(models.Model, rm.RestModel, rm.MetaDataModel):
|
|
84
84
|
if md.state != 1:
|
85
85
|
md.state = 1
|
86
86
|
md.touch(request.ip)
|
87
|
+
metadata = request.DATA.get("device_metadata", None)
|
88
|
+
if isinstance(metadata, dict):
|
89
|
+
md.set_metadata(metadata)
|
87
90
|
return md
|
88
91
|
md = MemberDevice(
|
89
92
|
uuid=device_id, buid=buid,
|
@@ -26,7 +26,7 @@ account/migrations/0021_alter_cloudcredentials_group.py,sha256=zoFYmE-hd3uRGX6DR
|
|
26
26
|
account/migrations/0022_alter_memberdevice_modified.py,sha256=9eeKcdr9p6qFJ8ZxSnKSj1KxZjW8NZfM0YCMck6i0QQ,424
|
27
27
|
account/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
account/models/__init__.py,sha256=cV_lMnT2vL_mjiYtT4hlcIHo52ocFbGSNVkOIHHLXZY,385
|
29
|
-
account/models/device.py,sha256=
|
29
|
+
account/models/device.py,sha256=2XT45W5iRGFFZlD5-nnypuR6BlscVbfsS1azxoeHj3Y,6222
|
30
30
|
account/models/feeds.py,sha256=vI7fG4ASY1M0Zjke24RdnfDcuWeATl_yR_25jPmT64g,2011
|
31
31
|
account/models/group.py,sha256=N9Ow7AtV4xN5zSE9E5-msthJy0G5-3DEr2MTmvFO1kU,22887
|
32
32
|
account/models/legacy.py,sha256=zYdtv4LC0ooxPVqWM-uToPwV-lYWQLorSE6p6yn1xDw,2720
|
@@ -378,7 +378,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
378
378
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
379
379
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
380
380
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
381
|
-
rest/__init__.py,sha256=
|
381
|
+
rest/__init__.py,sha256=OHP0LpCorLpmS0bdBI3QI-eOYtwdkh6DTH6YgR3KOUg,122
|
382
382
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
383
383
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
384
384
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -514,7 +514,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
514
514
|
ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
|
515
515
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
516
516
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
517
|
-
django_restit-4.2.
|
518
|
-
django_restit-4.2.
|
519
|
-
django_restit-4.2.
|
520
|
-
django_restit-4.2.
|
517
|
+
django_restit-4.2.164.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
518
|
+
django_restit-4.2.164.dist-info/METADATA,sha256=cxD7mymamfcjCPYJNAbJ6Kkk9WMB_sHtqPA7wN8KPo8,7663
|
519
|
+
django_restit-4.2.164.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
520
|
+
django_restit-4.2.164.dist-info/RECORD,,
|
rest/__init__.py
CHANGED
File without changes
|
File without changes
|