Browse Source

Fix user o nemá být řešitel

export_seznamu_prednasek
Jonas Havelka 4 years ago
parent
commit
2b1691cbe1
  1. 2
      seminar/testutils.py

2
seminar/testutils.py

@ -199,7 +199,7 @@ def gen_organizatori(rnd, osoby, last_rocnik):
x += 1 x += 1
os.user = user os.user = user
os.save() os.save()
os.user.user_permissions.add(org_perm) os.user.user_permissions.add(org_perm)
organizatori.append(Organizator.objects.create(osoba=os, organizatori.append(Organizator.objects.create(osoba=os,
organizuje_od=od, organizuje_do=do, strucny_popis_organizatora = popis_orga)) organizuje_od=od, organizuje_do=do, strucny_popis_organizatora = popis_orga))
return organizatori return organizatori

Loading…
Cancel
Save