You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of packages that implement Smart Iteration for django querysets, typically using sequential integer keys (e.g. ). These often increment the resultant key by the chunksize, and assume an integer primary key to add to.
Would there be any form of escape hatch in which we could access the internal integer value of the field?
In the case of which there is none and someone else runs into this, a workaround would be to monkeypatch in the __add__ method, allowing down other modules to work as expected.
The text was updated successfully, but these errors were encountered:
I have added integer arithmetic methods to the Hashid object, so doing things like book.id + 100 should work. If it doesn't, please let me know what packages you're referring to so I can attempt to duplicate the problem.
There are a number of packages that implement Smart Iteration for django querysets, typically using sequential integer keys (e.g. ). These often increment the resultant key by the chunksize, and assume an integer primary key to add to.
Would there be any form of escape hatch in which we could access the internal integer value of the field?
In the case of which there is none and someone else runs into this, a workaround would be to monkeypatch in the
__add__
method, allowing down other modules to work as expected.The text was updated successfully, but these errors were encountered: