Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
abbe3c75
Commit
abbe3c75
authored
Feb 25, 2014
by
Giorgos Korfiatis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astakos: Set limits at enable time in migration
parent
bbde07d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
snf-astakos-app/astakos/im/migrations/0077_base_projects.py
snf-astakos-app/astakos/im/migrations/0077_base_projects.py
+3
-3
No files found.
snf-astakos-app/astakos/im/migrations/0077_base_projects.py
View file @
abbe3c75
...
...
@@ -38,7 +38,7 @@ class Migration(DataMigration):
def
make_base_project
(
self
,
orm
,
user
):
chain
=
self
.
new_chain
(
orm
)
proj
=
orm
.
Project
.
objects
.
create
(
orm
.
Project
.
objects
.
create
(
id
=
chain
.
chain
,
uuid
=
user
.
uuid
,
last_application
=
None
,
...
...
@@ -53,8 +53,6 @@ class Migration(DataMigration):
private
=
True
,
is_base
=
True
)
base_grants
=
self
.
base_resources
(
orm
,
user
)
self
.
set_resources
(
proj
,
base_grants
)
user
.
base_project_id
=
chain
.
chain
user
.
save
()
...
...
@@ -69,6 +67,8 @@ class Migration(DataMigration):
project
.
name
=
project
.
realname
project
.
state
=
ACTIVATED
project
.
save
()
base_grants
=
self
.
base_resources
(
orm
,
user
)
self
.
set_resources
(
project
,
base_grants
)
self
.
new_membership
(
orm
,
project
,
user
)
def
forwards
(
self
,
orm
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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