From 6510a5c831f58dd7f6baaa264cb9d7b201c4dee5 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Tue, 20 Sep 2016 17:46:12 -0300 Subject: [PATCH] Apparently user OneToOneField doesn't have servidor_set anymore. ldap_sync test now passing. Signed-off-by: Luciano Almeida --- sigi/apps/servidores/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/servidores/models.py b/sigi/apps/servidores/models.py index 6b64940..e835815 100644 --- a/sigi/apps/servidores/models.py +++ b/sigi/apps/servidores/models.py @@ -63,7 +63,7 @@ class Servidor(models.Model): ) # usuario responsavel pela autenticaĆ§Ć£o do servidor no sistema - user = models.OneToOneField(User) + user = models.ForeignKey(User, unique=True) nome_completo = models.CharField(max_length=128) apelido = models.CharField(max_length=50, blank=True) # caminho no sistema para arquivo com a imagem