jazzband/django-silk

django += 1 increments by 2 instead of 1

kaushikk25 opened this issue · 0 comments

I am trying to increment the same parameter in all objects in the query set.
I have wondered if it could be achieved in a simpler way, e.g. using the update() function. To put it simply I would like to do something like this:

from django.db.models import F

SomeModel.objects.all().update(my_parameter=F('my_parameter') + 1)

If setting middleware in remove 'silk.middleware.SilkyMiddleware' then working fine. other wise increate 2 insted of 1 in ASGI server.