load_all.py 614 Bytes
Newer Older
1
from .loading_scripts import LoadGroups
Florent Chehab's avatar
Florent Chehab committed
2
from .loading_scripts import LoadAdminUser
Florent Chehab's avatar
Florent Chehab committed
3
from .loading_scripts import LoadCurrencies
Florent Chehab's avatar
Florent Chehab committed
4
5
from .loading_scripts import LoadCountries
from .loading_scripts import LoadUniversities
Florent Chehab's avatar
Florent Chehab committed
6
from .loading_scripts import LoadTags
Florent Chehab's avatar
Florent Chehab committed
7
from .loading_scripts import LoadUniversityEx
Florent Chehab's avatar
Florent Chehab committed
8
import reversion
Florent Chehab's avatar
Florent Chehab committed
9
10
11


def load_all():
Florent Chehab's avatar
Florent Chehab committed
12
    with reversion.create_revision():
13
        LoadGroups()
Florent Chehab's avatar
Florent Chehab committed
14
15
16
17
18
19
        admin = LoadAdminUser().get()
        LoadCurrencies(admin).load()
        LoadCountries(admin).load()
        LoadUniversities(admin).load()
        LoadTags(admin).load()
        LoadUniversityEx(admin).load()