Commit ec10ad21 authored by Florent Chehab's avatar Florent Chehab

Bug prevention in load_data

parent 9eb85837
......@@ -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()
Markdown is supported
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