I'm trying yo generate fake data for my app but I need to generate specific type of users, I check docs for django-seed and I get this code from his page django-seed

from django_seed import Seed

seeder = Seed.seeder()

from myapp.models import Game, Player
seeder.add_entity(Game, 5)
seeder.add_entity(Player, 10)

inserted_pks = seeder.execute()

and I tried to generate data of this way

seeder = Seed.seeder()

seeder.add_entity(User, 1, {
    'first_name': lambda x: seeder.faker.name(),
    'last_name': lambda x: seeder.faker.name(),
    'email': lambda x: seeder.faker.email(),
    'country': lambda x: self.get_random_country(language=1),
    'is_admin': lambda x: False,
})

seeder.add_entity(User, 10, {
    'first_name': lambda x: seeder.faker.name(),
    'last_name': lambda x: seeder.faker.name(),
    'email': lambda x: seeder.faker.email(),
    'country': lambda x: self.get_random_country(language=1),
    'is_admin': lambda x: True,
})

seeder.execute()

So, I need to generate 10 admins and 1 no admin, but I get only 20 admin, then try creating 2 instances of the seeder.

seeder = Seed.seeder()

seeder.add_entity(User, 1, {
    'first_name': lambda x: seeder.faker.name(),
    'last_name': lambda x: seeder.faker.name(),
    'email': lambda x: seeder.faker.email(),
    'country': lambda x: self.get_random_country(language=1),
    'is_admin': lambda x: False,
})

seeder.execute()
admin_seeder = Seed.seeder()

admin_seeder.add_entity(User, 10, {
    'first_name': lambda x: admin_seeder.faker.name(),
    'last_name': lambda x: admin_seeder.faker.name(),
    'email': lambda x: seeder.faker.email(),
    'country': lambda x: self.get_random_country(language=1),
    'is_admin': lambda x: True,
})

admin_seeder.execute()

this time I get 20 admins and 1 no admin, but just ask for 10 admins.