From e20741f1128a2e4a856cdca537a27988efd03b3b Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 15 Sep 2016 14:07:02 -0300 Subject: [PATCH] =?UTF-8?q?Tirando=20a=20refer=C3=AAncia=20a=20Grupo=20no?= =?UTF-8?q?=20nome=20da=20bancada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0023_auto_20160915_1405.py | 20 +++++++++++++++++++ sapl/sessao/models.py | 2 +- scripts/inicializa_grupos_autorizacoes.py | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 sapl/sessao/migrations/0023_auto_20160915_1405.py diff --git a/sapl/sessao/migrations/0023_auto_20160915_1405.py b/sapl/sessao/migrations/0023_auto_20160915_1405.py new file mode 100644 index 000000000..10a1a0511 --- /dev/null +++ b/sapl/sessao/migrations/0023_auto_20160915_1405.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-09-15 17:05 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0022_auto_20160805_0943'), + ] + + operations = [ + migrations.AlterField( + model_name='bancada', + name='nome', + field=models.CharField(max_length=80, verbose_name='Nome da Bancada, Bloco, ou Frente'), + ), + ] diff --git a/sapl/sessao/models.py b/sapl/sessao/models.py index 14e961fdf..6cfc4f06e 100644 --- a/sapl/sessao/models.py +++ b/sapl/sessao/models.py @@ -29,7 +29,7 @@ class Bancada(models.Model): legislatura = models.ForeignKey(Legislatura, verbose_name=_('Legislatura')) nome = models.CharField( max_length=80, - verbose_name=_('Nome da Bancada, Bloco, Frente ou Grupo')) + verbose_name=_('Nome da Bancada, Bloco, ou Frente')) partido = models.ForeignKey(Partido, blank=True, null=True, verbose_name=_('Partido')) data_criacao = models.DateField(blank=True, null=True, diff --git a/scripts/inicializa_grupos_autorizacoes.py b/scripts/inicializa_grupos_autorizacoes.py index 65f27f880..f0fe713ca 100644 --- a/scripts/inicializa_grupos_autorizacoes.py +++ b/scripts/inicializa_grupos_autorizacoes.py @@ -108,7 +108,7 @@ def cria_grupos_permissoes(): grupo.permissions.add(p) nome_usuario = 'operador_autor' - cria_usuario(nome_usuario, grupo_geral) + cria_usuario(nome_usuario, grupo) if __name__ == '__main__': cria_grupos_permissoes()