Skip to content

Commit

Permalink
[docs] remove example usage of submanagers
Browse files Browse the repository at this point in the history
Closes #324
  • Loading branch information
Gauvain Pocentek committed Sep 26, 2017
1 parent e5f59bd commit 9484106
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/gl_objects/projects.py
Expand Up @@ -32,8 +32,7 @@

# user create
alice = gl.users.list(username='alice')[0]
user_project = gl.user_projects.create({'name': 'project',
'user_id': alice.id})
user_project = alice.projects.create({'name': 'project'})
# end user create

# update
Expand All @@ -51,7 +50,7 @@
fork = project.forks.create({})

# fork to a specific namespace
fork = gl.project_forks.create({'namespace': 'myteam'}, project_id=1)
fork = project.forks.create({'namespace': 'myteam'})
# end fork

# forkrelation
Expand Down

0 comments on commit 9484106

Please sign in to comment.