From 1014f3fe2d866815f0dac3ed4d18f30bce83842a Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 23 Aug 2016 17:00:13 -0300 Subject: [PATCH] Elimina atributo grupo de Autor --- .../migrations/0045_auto_20160823_1658.py | 24 +++++++++++++++++++ sapl/materia/models.py | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 sapl/materia/migrations/0045_auto_20160823_1658.py diff --git a/sapl/materia/migrations/0045_auto_20160823_1658.py b/sapl/materia/migrations/0045_auto_20160823_1658.py new file mode 100644 index 000000000..6c0b8ddbf --- /dev/null +++ b/sapl/materia/migrations/0045_auto_20160823_1658.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-08-23 19:58 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0044_merge'), + ] + + operations = [ + migrations.RemoveField( + model_name='autor', + name='grupo_usuario', + ), + migrations.AlterField( + model_name='autor', + name='username', + field=models.CharField(blank=True, max_length=50, verbose_name='Nome de Usuário'), + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index fb5153cb8..c38d76c0a 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -222,7 +222,6 @@ class Autor(models.Model): verbose_name=_('Nome de Usuário')) email = models.EmailField( verbose_name=_('Email')) - grupo_usuario = models.ForeignKey(Group, default=grupo_autor) class Meta: verbose_name = _('Autor')