Reset the sequence counter. Args: value (int or None): the new 'next' sequence value; if None, recompute the next value from _setup_next_sequence(). force (bool): whether to force-reset parent sequence counters in a factory inheritance
(cls, value=None, force=False)
| 426 | |
| 427 | @classmethod |
| 428 | def reset_sequence(cls, value=None, force=False): |
| 429 | """Reset the sequence counter. |
| 430 | |
| 431 | Args: |
| 432 | value (int or None): the new 'next' sequence value; if None, |
| 433 | recompute the next value from _setup_next_sequence(). |
| 434 | force (bool): whether to force-reset parent sequence counters |
| 435 | in a factory inheritance chain. |
| 436 | """ |
| 437 | cls._meta.reset_sequence(value, force=force) |
| 438 | |
| 439 | @classmethod |
| 440 | def _setup_next_sequence(cls): |
no outgoing calls