Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
210d6996
Commit
210d6996
authored
Feb 14, 2020
by
Guilhem Saurel
Browse files
get_or_create slugified gitlab users
parent
e216978c
Pipeline
#8363
failed with stage
in 6 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
210d6996
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment