Skip to content

Commit

Permalink
Admin rework #1794
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jan 23, 2023
1 parent f8abd4e commit 3303e47
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions dsmr_datalogger/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class DataloggerSettingsAdmin(SingletonModelAdmin):
(
_("Input method and DSMR protocol"),
{
"fields": ["input_method", "dsmr_version"],
"fields": [
"input_method",
"dsmr_version",
"dsmr_extra_device_channel",
],
"description": _(
"The datalogger process should automatically restart to apply changes."
),
Expand All @@ -45,7 +49,6 @@ class DataloggerSettingsAdmin(SingletonModelAdmin):
_("Advanced"),
{
"fields": [
"dsmr_extra_device_channel",
"process_sleep",
"override_telegram_timestamp",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
field=models.IntegerField(
blank=True,
choices=[
(None, "Auto (default)"),
(None, "Automatic (default)"),
(1, "Belgium - Fluvius (channel 1)"),
(2, "Belgium - Fluvius (channel 2)"),
(3, "Belgium - Fluvius (channel 3)"),
Expand Down
2 changes: 1 addition & 1 deletion dsmr_datalogger/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DataloggerSettings(ModelUpdateMixin, SingletonModel):
DSMR_EXTRA_DEVICE_CHANNEL_3 = 3
DSMR_EXTRA_DEVICE_CHANNEL_4 = 4
DSMR_EXTRA_DEVICE_CHANNEL_CHOICES = (
(DSMR_EXTRA_DEVICE_CHANNEL_AUTO, _("Auto (default)")),
(DSMR_EXTRA_DEVICE_CHANNEL_AUTO, _("Automatic (default)")),
(DSMR_EXTRA_DEVICE_CHANNEL_1, _("Belgium - Fluvius (channel 1)")),
(DSMR_EXTRA_DEVICE_CHANNEL_2, _("Belgium - Fluvius (channel 2)")),
(DSMR_EXTRA_DEVICE_CHANNEL_3, _("Belgium - Fluvius (channel 3)")),
Expand Down
4 changes: 2 additions & 2 deletions dsmrreader/locales/nl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DSMR-reader\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-23 22:41+0100\n"
"POT-Creation-Date: 2023-01-23 22:47+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Dennis Siemensma <[email protected]>\n"
"Language-Team: Dennis Siemensma <[email protected]>\n"
Expand Down Expand Up @@ -711,7 +711,7 @@ msgstr "België - Fluvius (fix voor gasmeter)"
msgid "Luxembourg - Smarty (single tariff fix)"
msgstr "Luxemburg - Smarty (fix voor enkel tarief)"

msgid "Auto (default)"
msgid "Automatic (default)"
msgstr "Automatisch (standaard)"

msgid "Belgium - Fluvius (channel 1)"
Expand Down

0 comments on commit 3303e47

Please sign in to comment.