Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a144f77b
Commit
a144f77b
authored
Sep 21, 2012
by
Olga Brani
Browse files
Merge branch '0.6.4' of
https://code.grnet.gr/git/astakos
into 0.6.4
parents
ae96ca85
d4885fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/migrations/0023_populate_resource_data.py
View file @
a144f77b
...
...
@@ -19,7 +19,8 @@ class Migration(DataMigration):
sn
,
dict
=
args
url
=
dict
.
get
(
'url'
)
policy
=
dict
.
get
(
'quota'
)
or
()
s
,
created
=
orm
.
Service
.
objects
.
get_or_create
(
name
=
sn
,
url
=
url
)
s
,
created
=
orm
.
Service
.
objects
.
get_or_create
(
name
=
sn
,
defaults
=
{
'url'
:
url
})
if
not
created
and
not
s
.
url
:
s
.
url
=
url
s
.
save
()
...
...
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