Skip to content

Commit

Permalink
feat(models): add fixture for fuel types
Browse files Browse the repository at this point in the history
  • Loading branch information
zyv committed Aug 23, 2024
1 parent 390d74b commit 5715d1f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ poetry install
./manage.py migrate
./manage.py createsuperuser
./manage.py shell < logbook/fixtures/import_aerodromes.py
./manage.py loaddata logbook/fixtures/fuel_type.json
./manage.py runserver
```

Expand Down
29 changes: 29 additions & 0 deletions logbook/fixtures/fuel_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"model": "logbook.fueltype",
"pk": 1,
"fields": {
"name": "Jet",
"color": "#FFC107",
"density": 0.81
}
},
{
"model": "logbook.fueltype",
"pk": 2,
"fields": {
"name": "Mogas",
"color": "#198754",
"density": 0.75
}
},
{
"model": "logbook.fueltype",
"pk": 3,
"fields": {
"name": "Avgas",
"color": "#0DCAF0",
"density": 0.72
}
}
]

0 comments on commit 5715d1f

Please sign in to comment.