django-restit 4.1.15__py3-none-any.whl → 4.1.16__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.
- {django_restit-4.1.15.dist-info → django_restit-4.1.16.dist-info}/METADATA +1 -1
- {django_restit-4.1.15.dist-info → django_restit-4.1.16.dist-info}/RECORD +7 -7
- rest/__init__.py +1 -1
- rest/models/base.py +3 -3
- rest/ua.py +13 -1
- {django_restit-4.1.15.dist-info → django_restit-4.1.16.dist-info}/LICENSE.md +0 -0
- {django_restit-4.1.15.dist-info → django_restit-4.1.16.dist-info}/WHEEL +0 -0
@@ -342,7 +342,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
342
342
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
343
343
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
344
344
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
345
|
-
rest/__init__.py,sha256=
|
345
|
+
rest/__init__.py,sha256=55bVWCfeW183Yg3vCEJi2Kc0S6HRRfKn19IMdIH9a2M,121
|
346
346
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
347
347
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
348
348
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -374,7 +374,7 @@ rest/middleware/request.py,sha256=OlWE4_8nJ1krzuiNn2heecPxqtbTEhFzGYp3_7bnEEA,41
|
|
374
374
|
rest/middleware/session.py,sha256=zHSoQpIzRLmpqr_JvW406wzpvU3W3gDbm5JhtzLAMlE,10240
|
375
375
|
rest/middleware/session_store.py,sha256=X_i06TnZLW1srV0vkjjLhZ7fl1G56PswXxRpVzdFasw,1874
|
376
376
|
rest/models/__init__.py,sha256=M8pvFDq-WCF-QcM58X7pMufYYe0aaQ3U0PwGe9TKbbY,130
|
377
|
-
rest/models/base.py,sha256=
|
377
|
+
rest/models/base.py,sha256=nVLZPUnTlPtsHTc-2g9-Yw7iLDLMEUelo7hqbF-Uohg,62375
|
378
378
|
rest/models/cacher.py,sha256=eKz8TINVhWEqKhJGMsRkKZTtBUIv5rN3NHbZwOC56Uk,578
|
379
379
|
rest/models/metadata.py,sha256=GZTrDXms3jumo7dFq2zpY3x4EzGZWwryn5Jfsr6Wg2Y,11894
|
380
380
|
rest/regexes.yaml,sha256=VoGb4E-P_K9f82Yzcpltgzekpt9usRtwu9PYlo46nUw,149463
|
@@ -401,7 +401,7 @@ rest/templates/email/error.html,sha256=JDtB0egYLHDZS6KCNFslgB4ZiaidfPdjkTXaHiyVb
|
|
401
401
|
rest/templates/email/error.subject,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
402
402
|
rest/templates/rest_docs.html,sha256=lr5p3ic0uCRli9KEvoULTa5a3_54wNE5yL16kN1uau8,7148
|
403
403
|
rest/templates/rest_html.html,sha256=wGZV3j_tB9rzzJlsMxidUQ5ex_uRPyU_s8GCmHLXiqk,10880
|
404
|
-
rest/ua.py,sha256=
|
404
|
+
rest/ua.py,sha256=0wwOtJPWCiCxUKzWKyMApRbSaiuAxCCk0Pe3OwzYBhE,185398
|
405
405
|
rest/uberdict.py,sha256=ivDpzfchQqX8dM2_TtuyMW7NNO-j7zDmxkdKixQxvU4,17064
|
406
406
|
rest/url_docs.py,sha256=O8O_CQso3fB-7o-huidIT1BRGv5R6lDW-yKHnsGyAPk,11881
|
407
407
|
rest/urls.py,sha256=U3eD9kI19wp-NkkXCiAjdQe560fslskQngStRcGDS0I,1787
|
@@ -452,7 +452,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
452
452
|
ws4redis/settings.py,sha256=lF-6nzv7SWjmFgmontpZKdSBhp8q4FhvFOcEYZGR8pc,1411
|
453
453
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
454
454
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
455
|
-
django_restit-4.1.
|
456
|
-
django_restit-4.1.
|
457
|
-
django_restit-4.1.
|
458
|
-
django_restit-4.1.
|
455
|
+
django_restit-4.1.16.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
456
|
+
django_restit-4.1.16.dist-info/METADATA,sha256=RN25T2gjqCvwXJaZ-4CyUraCPNvLLx3evLCpXk-gbSg,7532
|
457
|
+
django_restit-4.1.16.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
458
|
+
django_restit-4.1.16.dist-info/RECORD,,
|
rest/__init__.py
CHANGED
rest/models/base.py
CHANGED
@@ -511,9 +511,9 @@ class RestModel(object):
|
|
511
511
|
self.restSaveField(key, value, has_fields, has_no_fields, using=using)
|
512
512
|
|
513
513
|
rfiles = self.restSaveFiles(request, files)
|
514
|
-
|
515
|
-
|
516
|
-
|
514
|
+
if getattr(self.RestMeta, "ALWAYS_SAVE", True) or len(self._changed__):
|
515
|
+
self.on_rest_pre_save(request)
|
516
|
+
self.save(using=using)
|
517
517
|
for key, value in list(deferred.items()):
|
518
518
|
self.restSaveField(key, value, has_fields, has_no_fields, using=using)
|
519
519
|
|
rest/ua.py
CHANGED
@@ -469,8 +469,13 @@ def GetFilters(
|
|
469
469
|
return filters
|
470
470
|
|
471
471
|
|
472
|
-
|
473
472
|
USER_AGENT_PARSERS = [
|
473
|
+
UserAgentParser(
|
474
|
+
'^(Indica.+?)/(\\d+)\\.(\\d+)\\.(\\d+)\s\((.+?)\)\s(.+?)/(.+?)$',
|
475
|
+
None,
|
476
|
+
None,
|
477
|
+
None,
|
478
|
+
),
|
474
479
|
UserAgentParser(
|
475
480
|
'(GeoEvent Server) (\\d+)(?:\\.(\\d+)(?:\\.(\\d+)|)|)',
|
476
481
|
None,
|
@@ -2419,6 +2424,13 @@ DEVICE_PARSERS = [
|
|
2419
2424
|
'Spider',
|
2420
2425
|
'Smartphone',
|
2421
2426
|
),
|
2427
|
+
DeviceParser(
|
2428
|
+
'^Indica.+?/.+?\s\((.+?)\)\s(.+?)/(.+?)$',
|
2429
|
+
None,
|
2430
|
+
"iPad",
|
2431
|
+
"$2",
|
2432
|
+
"$3"
|
2433
|
+
),
|
2422
2434
|
DeviceParser(
|
2423
2435
|
'(?:DoCoMo|\\bMOT\\b|\\bLG\\b|Nokia|Samsung|SonyEricsson).*(?:(?:Bot|Yeti)-Mobile|bots?/\\d|(?:bot|crawler)\\.html|(?:jump|google|Wukong)bot|ichiro/mobile|/spider|YahooSeeker)',
|
2424
2436
|
'i',
|
File without changes
|
File without changes
|