moved fixtures into app folders
This commit is contained in:
parent
70618f2bdb
commit
77dc45044b
@ -1,38 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"model": "home.ticketpriority",
|
|
||||||
"pk": "0ebc194c-b856-4e4f-9def-cd190d1e8d43",
|
|
||||||
"fields": {
|
|
||||||
"title": "Low",
|
|
||||||
"colour": "#388e3c",
|
|
||||||
"backgroundcolour": "#e8f5e9"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "home.ticketpriority",
|
|
||||||
"pk": "a680328f-0680-456c-8e26-f594e05989ad",
|
|
||||||
"fields": {
|
|
||||||
"title": "High",
|
|
||||||
"colour": "#ef6c00",
|
|
||||||
"backgroundcolour": "#ffe0b2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "home.ticketpriority",
|
|
||||||
"pk": "d140a5be-cf24-4250-8b38-31338e69dffd",
|
|
||||||
"fields": {
|
|
||||||
"title": "Urgent",
|
|
||||||
"colour": "#c62828",
|
|
||||||
"backgroundcolour": "#ffcdd2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"model": "home.ticketpriority",
|
|
||||||
"pk": "e79687c6-9054-4706-b9a2-34afccfaa7c8",
|
|
||||||
"fields": {
|
|
||||||
"title": "Normal",
|
|
||||||
"colour": "#2e7d32",
|
|
||||||
"backgroundcolour": "#c8e6c9"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
38
apps/home/fixtures/ticketpriority.json
Normal file
38
apps/home/fixtures/ticketpriority.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"model": "home.ticketpriority",
|
||||||
|
"pk": "d140a5be-cf24-4250-8b38-31338e69dffd",
|
||||||
|
"fields": {
|
||||||
|
"title": "Urgent",
|
||||||
|
"colour": "#c62828",
|
||||||
|
"backgroundcolour": "#ffcdd2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "home.ticketpriority",
|
||||||
|
"pk": "a680328f-0680-456c-8e26-f594e05989ad",
|
||||||
|
"fields": {
|
||||||
|
"title": "High",
|
||||||
|
"colour": "#ef6c00",
|
||||||
|
"backgroundcolour": "#ffe0b2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "home.ticketpriority",
|
||||||
|
"pk": "e79687c6-9054-4706-b9a2-34afccfaa7c8",
|
||||||
|
"fields": {
|
||||||
|
"title": "Normal",
|
||||||
|
"colour": "#2e7d32",
|
||||||
|
"backgroundcolour": "#c8e6c9"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "home.ticketpriority",
|
||||||
|
"pk": "0ebc194c-b856-4e4f-9def-cd190d1e8d43",
|
||||||
|
"fields": {
|
||||||
|
"title": "Low",
|
||||||
|
"colour": "#388e3c",
|
||||||
|
"backgroundcolour": "#e8f5e9"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -1,19 +1,19 @@
|
|||||||
echo migrating
|
echo migrating
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
echo installing departments
|
echo installing authentication fixtures
|
||||||
python manage.py loaddata apps/fixtures/authentication/department.json
|
python manage.py loaddata apps/authentication/fixtures/department.json
|
||||||
|
|
||||||
echo installing default users
|
echo installing default users
|
||||||
python manage.py loaddata apps/fixtures/authentication/defaultuser.json
|
python manage.py loaddata apps/authentication/fixtures/defaultuser.json
|
||||||
|
|
||||||
echo installing ticket priorities
|
echo installing ticket priorities
|
||||||
python manage.py loaddata apps/fixtures/home/ticketpriority.json
|
python manage.py loaddata apps/home/fixtures/ticketpriority.json
|
||||||
|
|
||||||
echo installing ticket tags
|
echo installing ticket tags
|
||||||
python manage.py loaddata apps/fixtures/home/tickettag.json
|
python manage.py loaddata apps/home/fixtures/tickettag.json
|
||||||
|
|
||||||
echo installing default tickets
|
echo installing default tickets
|
||||||
python manage.py loaddata apps/fixtures/home/defaulttickets.json
|
python manage.py loaddata apps/home/fixtures/newtickets.json
|
||||||
|
|
||||||
echo all done!
|
echo all done!
|
Loading…
x
Reference in New Issue
Block a user