Skip to content

Commit

Permalink
Merge pull request #398 from maykinmedia/issue/demodata-update
Browse files Browse the repository at this point in the history
💚 update demodata with token model change
  • Loading branch information
joeribekker authored May 3, 2024
2 parents aed4b7f + 7fc6ef4 commit 5fd4dbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
run: docker-compose -f docker-compose-qs.yml up -d
- name: Wait until DB container starts
run: sleep 10
- name: Load fixtures
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
# TODO uncomment when correct fixtures are uploaded into dockerhub inside docker image
# - name: Load fixtures
# run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py createsuperuser --username admin --email [email protected] --no-input
- name: Check main page
Expand Down
9 changes: 5 additions & 4 deletions src/objects/fixtures/demodata.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,20 +772,21 @@
},
{
"model": "token.tokenauth",
"pk": "cd63e158f3aca276ef284e3033d020a22899c728",
"pk": 1,
"fields": {
"contact_person": "test",
"email": "[email protected]",
"organization": "",
"last_modified": "2020-12-23T11:43:16.820Z",
"created": "2020-12-22T16:27:00.751Z"
"created": "2020-12-22T16:27:00.751Z",
"token": "cd63e158f3aca276ef284e3033d020a22899c728"
}
},
{
"model": "token.permission",
"pk": 1,
"fields": {
"token_auth": "cd63e158f3aca276ef284e3033d020a22899c728",
"token_auth": 1,
"object_type": 2,
"mode": "read_and_write"
}
Expand All @@ -794,7 +795,7 @@
"model": "token.permission",
"pk": 2,
"fields": {
"token_auth": "cd63e158f3aca276ef284e3033d020a22899c728",
"token_auth": 1,
"object_type": 1,
"mode": "read_and_write"
}
Expand Down

0 comments on commit 5fd4dbc

Please sign in to comment.