mirror of https://github.com/interlegis/sigi.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
committed by
Luciano Almeida
6 changed files with 62 additions and 24 deletions
@ -0,0 +1,15 @@ |
|||
from django.contrib.auth.models import Group |
|||
|
|||
|
|||
def criar_grupos(): |
|||
# COPLAF = Atestar usuário |
|||
if not Group.objects.filter(name='COPLAF').exists(): |
|||
Group.objects.create(name='COPLAF') |
|||
|
|||
# COADFI = Atestar convênio |
|||
if not Group.objects.filter(name='COADFI').exists(): |
|||
Group.objects.create(name='COADFI') |
|||
|
|||
# Já recebeu aprovação dos dois grupos de cima |
|||
if not Group.objects.filter(name='Usuario_Habilitado').exists(): |
|||
Group.objects.create(name='Usuario_Habilitado') |
@ -0,0 +1,18 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.6 on 2016-06-30 12:52 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('usuarios', '0010_auto_20160629_1448'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.DeleteModel( |
|||
name='Subsecretaria', |
|||
), |
|||
] |
Loading…
Reference in new issue