django-restit 4.2.86__py3-none-any.whl → 4.2.87__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.2.86.dist-info → django_restit-4.2.87.dist-info}/METADATA +1 -1
- {django_restit-4.2.86.dist-info → django_restit-4.2.87.dist-info}/RECORD +5 -5
- rest/helpers.py +1 -1
- {django_restit-4.2.86.dist-info → django_restit-4.2.87.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.86.dist-info → django_restit-4.2.87.dist-info}/WHEEL +0 -0
@@ -387,7 +387,7 @@ rest/extra/__init__.py,sha256=YzmNsch5H5FFLkUK9mIAKyoRK_rJCA9HGb0kubp4h30,54
|
|
387
387
|
rest/extra/json_metadata.py,sha256=p_ffzmANmOFix_oC3voR6_NNTjcn7-T7aXcH-I4_Npg,1078
|
388
388
|
rest/fields.py,sha256=_v1TJVc6vyWlqmwFRJ6mtuR5Fo-lS0KcUhPWIrzKZUo,9719
|
389
389
|
rest/forms.py,sha256=66Wm5cdy8tKib_mGicjq_yd-gNVMFWRECnrDksnNnwU,6316
|
390
|
-
rest/helpers.py,sha256=
|
390
|
+
rest/helpers.py,sha256=PQ6-zTKZo85-TTI5BOO1sQVUFScirArnMz3X7_OpZN4,29450
|
391
391
|
rest/joke.py,sha256=0PpKaX2iN7jlS62kgjfmmqkFBYLPURz15aQ8R7OJkJ8,260
|
392
392
|
rest/jwtoken.py,sha256=6AIe9IpsOn44sodiV0OPYeTZZNhS8VRiakV-rOuCyGw,2444
|
393
393
|
rest/log.py,sha256=hd1_4HBOS395sfXJIL6BTw9yekm1SLgBwYx_PdfIhKA,20930
|
@@ -506,7 +506,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
506
506
|
ws4redis/settings.py,sha256=K0yBiLUuY81iDM4Yr-k8hbvjn5VVHu5zQhmMK8Dtz0s,1536
|
507
507
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
508
508
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
509
|
-
django_restit-4.2.
|
510
|
-
django_restit-4.2.
|
511
|
-
django_restit-4.2.
|
512
|
-
django_restit-4.2.
|
509
|
+
django_restit-4.2.87.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
510
|
+
django_restit-4.2.87.dist-info/METADATA,sha256=QnVcOPqf4_jJ5FgPcmrhhxiq4LmwQo-2WOwL0rY2oCI,7645
|
511
|
+
django_restit-4.2.87.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
512
|
+
django_restit-4.2.87.dist-info/RECORD,,
|
rest/helpers.py
CHANGED
@@ -583,7 +583,7 @@ def getGroupLeaders(Model, timeframe="week", date_field="created",
|
|
583
583
|
aq[field_key] = Avg(field)
|
584
584
|
else:
|
585
585
|
aq[field_key] = Count(field)
|
586
|
-
return list(qset.annotate(**aq)[:size])
|
586
|
+
return list(qset.annotate(**aq).order_by(f"-{field_key}")[:size])
|
587
587
|
|
588
588
|
|
589
589
|
def countOccurences(qset, field_name):
|
File without changes
|
File without changes
|