summaryrefslogtreecommitdiff
path: root/src/django_co_connector/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/django_co_connector/models.py')
-rw-r--r--src/django_co_connector/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/django_co_connector/models.py b/src/django_co_connector/models.py
index a0f6082..9b0af72 100644
--- a/src/django_co_connector/models.py
+++ b/src/django_co_connector/models.py
@@ -64,7 +64,7 @@ def co_import_av(user,attribute,values):
for value in values:
gco = GroupConnector.objects.filter(attribute=attribute,value=value)
if not gco:
- group = Group.objects.get_or_create(name=value)
+ group,created = Group.objects.get_or_create(name=value)
gco = GroupConnector.objects.create(attribute=attribute,value=value,group=group)
meta = gco.fetch_meta()