Browse Source

Corrige erro em update_groups

pull/1610/head
LeandroRoberto 7 years ago
parent
commit
079ce5ecf2
  1. 3
      sapl/rules/apps.py
  2. 2
      sapl/rules/map_rules.py

3
sapl/rules/apps.py

@ -186,7 +186,8 @@ def update_groups(app_config, verbosity=2, interactive=True,
**param_username)[0]
usuario.set_password('interlegis')
usuario.save()
grupo.user_set.add(usuario)
g = Group.objects.get_or_create(name=grupo)[0]
g.user_set.add(usuario)
def cria_usuarios_padrao(self):
for group, user in (

2
sapl/rules/map_rules.py

@ -195,7 +195,7 @@ rules_group_geral = {
'view_tabelas_auxiliares'
]),
(base.CasaLegislativa, __listdetailchange__),
(base.CasaLegislativa, __listdetailchange__ + [RP_ADD]),
(base.ProblemaMigracao, []),
(base.Argumento, []),
(base.Constraint, []),

Loading…
Cancel
Save