mirror of https://github.com/interlegis/sigi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
515 B
16 lines
515 B
9 years ago
|
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')
|