model-bakers / model_bakery

Object factory for Django
https://model-bakery.readthedocs.io/en/latest/
Other
845 stars 85 forks source link

utils.seq does not start from 0 #415

Closed vvvin333 closed 1 year ago

vvvin333 commented 1 year ago

Describe the issue seq function does not work properly with start=0 due to there is wrong check for None (default) value.

for i in seq(0, start=0):
    print(i)

starts from 1 but not from 0 as expected.

Expected behavior seq(0, start=0) should start from 0

Versions