Created
July 9, 2014 18:32
-
-
Save fandrefh/28b3fa7965ff42fca309 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PerfilUsuario(models.Model): | |
user = models.OneToOneField(User) | |
funcao = models.CharField(u'Função', max_length=50) | |
data_criacao = models.DateTimeField(auto_now_add=True) | |
def __unicode__(self): | |
return self.user.first_name | |
class Meta: | |
permissions = ( | |
("Administrador", "Administrador - Acesso total ao sistema"), | |
("Colaborador", "Colaborador - Acesso limitado ao sistema"), | |
) | |
verbose_name=u'Perfil do Usuário' | |
verbose_name_plural=u'Perfil de Usuários' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment