import factory class UserFactory(factory.Factory): id = factory.Sequence(int) name = 'John' user = UserFactory(name='Adam')
factory.Sequence