forked from Github-Mirrors/canaille
fix: use one single faker generator for fake groups generation
This commit is contained in:
parent
0a2d3d4629
commit
642e6fcd3f
1 changed files with 1 additions and 1 deletions
|
@ -47,8 +47,8 @@ def fake_users(nb=1):
|
|||
def fake_groups(nb=1, nb_users_max=1):
|
||||
users = models.User.query()
|
||||
groups = list()
|
||||
for _ in range(nb):
|
||||
fake = faker_generator(["en_US"])
|
||||
for _ in range(nb):
|
||||
try:
|
||||
group = models.Group(
|
||||
display_name=fake.unique.word(),
|
||||
|
|
Loading…
Reference in a new issue