I'm updating my scripts that create a large dataset using factory boy. For it it's really useful to be able to get (frequently) a count of the # of rows/instances that have been made for each model.
From the code 3 years ago I used to be able to access the _counter.seq to get the value that sequence is using.
this doesn't work anymore.
I've tried changing it to
cls._options_class._counter.seq
But this seems to get reset every time a new factory is kicked off.
Any advice/help would be much appreciated!