Add migrations for pages

This commit is contained in:
Tobias 2018-09-29 18:17:01 +12:00
parent 27996c1960
commit cb394760ae
4 changed files with 1980 additions and 1317 deletions

View file

@ -2,7 +2,7 @@
/usr/local/bin/python /app/symposion_app/manage.py migrate
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{conference,proposal_base,sites,sitetree,flatpages}.json
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{2019_registrasion,2019_schedule}.json
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{2019_groups,2019_registrasion,2019_schedule,2019_sitetree,2019_flatpages}.json
/usr/local/bin/python /app/symposion_app/manage.py create_review_permissions
#/usr/local/bin/python /app/symposion_app/manage.py populate_inventory

View file

@ -0,0 +1,107 @@
[
{
"model": "flatpages.flatpage",
"pk": 1,
"fields": {
"url": "/",
"title": "LCA 2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/homepage.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 2,
"fields": {
"url": "/attend/code-of-conduct/",
"title": "Code of Conduct -- LCA2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/coc.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 3,
"fields": {
"url": "/attend/terms-and-conditions/",
"title": "Terms and Conditions -- LCA2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/toc.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 4,
"fields": {
"url": "/sponsors/",
"title": "Sponsorship -- LCA2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/sponsorship.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 5,
"fields": {
"url": "/call-for-papers/",
"title": "Call for Papers -- LCA2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/proposals.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 6,
"fields": {
"url": "/programme/",
"title": "Programme Overview -- LCA 2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/programme_overview.html",
"registration_required": false,
"sites": [
1
]
}
},
{
"model": "flatpages.flatpage",
"pk": 7,
"fields": {
"url": "/programme/miniconfs/",
"title": "Miniconfs -- LCA 2019",
"content": "",
"enable_comments": false,
"template_name": "flatpages/miniconfs.html",
"registration_required": false,
"sites": [
1
]
}
}
]

File diff suppressed because it is too large Load diff

597
fixtures/2019_sitetree.json Normal file
View file

@ -0,0 +1,597 @@
[
{
"model": "sitetree.tree",
"pk": 1,
"fields": {
"title": "main",
"alias": "main"
}
},
{
"model": "sitetree.treeitem",
"pk": 1,
"fields": {
"title": "LINUX.CONF.AU 2019",
"hint": "",
"url": "/index.html",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 2,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 2,
"fields": {
"title": "Dashboard",
"hint": "",
"url": "dashboard",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 37,
"sort_order": 22,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 3,
"fields": {
"title": "django admin",
"hint": "",
"url": "/admin",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": true,
"access_perm_type": 1,
"parent": 9,
"sort_order": 3,
"access_permissions": [
52
]
}
},
{
"model": "sitetree.treeitem",
"pk": 4,
"fields": {
"title": "Ticket Reports",
"hint": "",
"url": "/tickets/reports/",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": true,
"access_perm_type": 1,
"parent": 9,
"sort_order": 4,
"access_permissions": [
52
]
}
},
{
"model": "sitetree.treeitem",
"pk": 9,
"fields": {
"title": "Admin",
"hint": "",
"url": "#",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": true,
"access_perm_type": 1,
"parent": null,
"sort_order": 37,
"access_permissions": [
52,
20
]
}
},
{
"model": "sitetree.treeitem",
"pk": 19,
"fields": {
"title": "Schedule Edit",
"hint": "",
"url": "/schedule/edit",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": true,
"access_perm_type": 1,
"parent": 9,
"sort_order": 19,
"access_permissions": [
106,
107,
108
]
}
},
{
"model": "sitetree.treeitem",
"pk": 20,
"fields": {
"title": "Home",
"hint": "",
"url": "/",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 3,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 21,
"fields": {
"title": "About",
"hint": "",
"url": "/about",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 9,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 22,
"fields": {
"title": "News",
"hint": "",
"url": "/news",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 10,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 23,
"fields": {
"title": "Attend",
"hint": "",
"url": "#",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 21,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 24,
"fields": {
"title": "Tickets and Prices",
"hint": "",
"url": "/attend",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 23,
"sort_order": 25,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 25,
"fields": {
"title": "Accommodation",
"hint": "",
"url": "/attend/accommodation",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 23,
"sort_order": 26,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 26,
"fields": {
"title": "Business Case",
"hint": "",
"url": "/attend/business-case",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 23,
"sort_order": 27,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 27,
"fields": {
"title": "Shirts",
"hint": "",
"url": "/attend/shirts",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 23,
"sort_order": 28,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 28,
"fields": {
"title": "Code of Conduct",
"hint": "",
"url": "/attend/code-of-conduct/",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 37,
"sort_order": 36,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 29,
"fields": {
"title": "Terms and Conditions",
"hint": "",
"url": "/attend/terms-and-conditions/",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 37,
"sort_order": 30,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 30,
"fields": {
"title": "Volunteer",
"hint": "",
"url": "/attend/volunteer",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 23,
"sort_order": 29,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 31,
"fields": {
"title": "Programme",
"hint": "",
"url": "#",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 23,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 32,
"fields": {
"title": "Overview",
"hint": "",
"url": "/programme",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 31,
"sort_order": 32,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 33,
"fields": {
"title": "Miniconfs",
"hint": "",
"url": "/programme/miniconfs/",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 31,
"sort_order": 33,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 34,
"fields": {
"title": "Call for Papers",
"hint": "",
"url": "/call-for-papers/",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": 31,
"sort_order": 34,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 35,
"fields": {
"title": "Sponsors",
"hint": "",
"url": "/sponsors/",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 35,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 36,
"fields": {
"title": "Call for Papers",
"hint": "",
"url": "/call-for-papers/",
"urlaspattern": false,
"tree": 1,
"hidden": true,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 24,
"access_permissions": []
}
},
{
"model": "sitetree.treeitem",
"pk": 37,
"fields": {
"title": "Attend",
"hint": "",
"url": "#",
"urlaspattern": false,
"tree": 1,
"hidden": false,
"alias": null,
"description": "",
"inmenu": true,
"inbreadcrumbs": true,
"insitetree": true,
"access_loggedin": false,
"access_guest": false,
"access_restricted": false,
"access_perm_type": 1,
"parent": null,
"sort_order": 31,
"access_permissions": []
}
}
]