Commit 210d6996 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

get_or_create slugified gitlab users

parent e216978c
Pipeline #8363 failed with stage
in 6 minutes and 12 seconds
......@@ -139,7 +139,7 @@ class Forge(Links, NamedModel):
'group': data['kind'] == 'group'
for data in self.api_list('/users'):
Namespace.objects.get_or_create(slug=data['username'].lower(), defaults={'name': data['name']})
Namespace.objects.get_or_create(slug=slugify(data['username']), defaults={'name': data['name']})
def get_namespaces_redmine(self):
pass # TODO
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment