Skip to content

Commit

Permalink
Add built-in decoder interface type
Browse files Browse the repository at this point in the history
  • Loading branch information
daniviga committed Apr 30, 2024
1 parent 35905ba commit 456272b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ram/ram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ram.utils import git_suffix

__version__ = "0.12.4"
__version__ = "0.12.5"
__version__ += git_suffix(__file__)
1 change: 1 addition & 0 deletions ram/ram/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
DEFAULT_CARD_IMAGE = "coming_soon.svg"

DECODER_INTERFACES = [
(0, "Built-in"),
(1, "NEM651"),
(2, "NEM652"),
(3, "PluX"),
Expand Down
29 changes: 29 additions & 0 deletions ram/roster/migrations/0027_alter_rollingstock_decoder_interface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 5.0.4 on 2024-04-30 09:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("roster", "0026_rollingstock_item_number_slug"),
]

operations = [
migrations.AlterField(
model_name="rollingstock",
name="decoder_interface",
field=models.PositiveSmallIntegerField(
blank=True,
choices=[
(0, "Built-in"),
(1, "NEM651"),
(2, "NEM652"),
(3, "PluX"),
(4, "21MTC"),
(5, "Next18/Next18S"),
],
null=True,
),
),
]

0 comments on commit 456272b

Please sign in to comment.