Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
ec10ad21
Commit
ec10ad21
authored
Sep 13, 2018
by
Florent Chehab
Browse files
Bug prevention in load_data
parent
9eb85837
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/load_data/load_all.py
View file @
ec10ad21
...
...
@@ -4,12 +4,14 @@ from .loading_scripts import LoadCountries
from
.loading_scripts
import
LoadUniversities
from
.loading_scripts
import
LoadTags
from
.loading_scripts
import
LoadUniversityEx
import
reversion
def
load_all
():
admin
=
LoadAdminUser
().
get
()
LoadCurrencies
(
admin
).
load
()
LoadCountries
(
admin
).
load
()
LoadUniversities
(
admin
).
load
()
LoadTags
(
admin
).
load
()
LoadUniversityEx
(
admin
).
load
()
with
reversion
.
create_revision
():
admin
=
LoadAdminUser
().
get
()
LoadCurrencies
(
admin
).
load
()
LoadCountries
(
admin
).
load
()
LoadUniversities
(
admin
).
load
()
LoadTags
(
admin
).
load
()
LoadUniversityEx
(
admin
).
load
()
Write
Preview
Supports
Markdown
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