Commit ec10ad21 authored by Florent Chehab's avatar Florent Chehab
Browse files

Bug prevention in load_data

parent 9eb85837
...@@ -4,12 +4,14 @@ from .loading_scripts import LoadCountries ...@@ -4,12 +4,14 @@ from .loading_scripts import LoadCountries
from .loading_scripts import LoadUniversities from .loading_scripts import LoadUniversities
from .loading_scripts import LoadTags from .loading_scripts import LoadTags
from .loading_scripts import LoadUniversityEx from .loading_scripts import LoadUniversityEx
import reversion
def load_all(): def load_all():
admin = LoadAdminUser().get() with reversion.create_revision():
LoadCurrencies(admin).load() admin = LoadAdminUser().get()
LoadCountries(admin).load() LoadCurrencies(admin).load()
LoadUniversities(admin).load() LoadCountries(admin).load()
LoadTags(admin).load() LoadUniversities(admin).load()
LoadUniversityEx(admin).load() LoadTags(admin).load()
LoadUniversityEx(admin).load()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment