Browse Source

corrige run python em migration

pull/3371/head
Leandro Roberto 5 years ago
parent
commit
b361d02365
  1. 2
      sapl/parlamentares/migrations/0035_auto_20210315_1522.py

2
sapl/parlamentares/migrations/0035_auto_20210315_1522.py

@ -9,7 +9,7 @@ def remove_grupo_votante_de_usuario(apps, schema_editor):
Group = apps.get_model('auth', 'Group')
User = apps.get_model('auth', 'User')
g = Group.objects.get(name='Votante')
g, created = Group.objects.get_or_create(name='Votante')
# usuários do grupo votante sem vínculo com parlamentar
users_votantes = g.user_set.filter(votante_set__isnull=True)

Loading…
Cancel
Save