forked from b4mad/racing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add car class * fix tests
- Loading branch information
Showing
15 changed files
with
295 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
components/paddock/telemetry/migrations/0013_alter_coach_mode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.3 on 2023-08-17 07:32 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("telemetry", "0012_alter_coach_mode"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="coach", | ||
name="mode", | ||
field=models.CharField( | ||
choices=[ | ||
("default", "Default"), | ||
("debug", "Debug"), | ||
("only_brake", "Only Brakepoints"), | ||
("only_brake_debug", "Only Brakepoints (Debug))"), | ||
], | ||
default="default", | ||
max_length=64, | ||
), | ||
), | ||
] |
50 changes: 50 additions & 0 deletions
50
components/paddock/telemetry/migrations/0014_carclass_car_car_class.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Generated by Django 4.2.3 on 2023-08-17 08:19 | ||
|
||
import django.db.models.deletion | ||
import django.utils.timezone | ||
import model_utils.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("telemetry", "0013_alter_coach_mode"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="CarClass", | ||
fields=[ | ||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
( | ||
"created", | ||
model_utils.fields.AutoCreatedField( | ||
default=django.utils.timezone.now, editable=False, verbose_name="created" | ||
), | ||
), | ||
( | ||
"modified", | ||
model_utils.fields.AutoLastModifiedField( | ||
default=django.utils.timezone.now, editable=False, verbose_name="modified" | ||
), | ||
), | ||
("name", models.CharField(max_length=200)), | ||
( | ||
"game", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, related_name="car_classes", to="telemetry.game" | ||
), | ||
), | ||
], | ||
options={ | ||
"ordering": ["name"], | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="car", | ||
name="car_class", | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.CASCADE, related_name="cars", to="telemetry.carclass" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.