Skip to content

Commit

Permalink
Changed reservation reserver id meaning (#279)
Browse files Browse the repository at this point in the history
Changes:
- reserver id now refer to only business id instead of both business and person ssn
  • Loading branch information
SanttuA authored Aug 31, 2023
1 parent e030a41 commit 6c6969a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ msgid "Reserver name"
msgstr ""

#: resources/models/reservation.py:156
msgid "Reserver ID (business or person)"
msgid "Reserver ID (business)"
msgstr ""

#: resources/models/reservation.py:157
Expand Down
4 changes: 2 additions & 2 deletions locale/fi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,8 @@ msgstr "Varauksen lisäkysymykset"
msgid "Reserver name"
msgstr "Varaajan nimi"

msgid "Reserver ID (business or person)"
msgstr "Varaajan tunniste (yritys tai henkilö)"
msgid "Reserver ID (business)"
msgstr "Varaajan tunniste (yritys)"

msgid "Reserver email address"
msgstr "Varaajan sähköpostiosoite"
Expand Down
4 changes: 2 additions & 2 deletions locale/sv/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,8 @@ msgstr "Extra frågor för bokning"
msgid "Reserver name"
msgstr "Reservnamn"

msgid "Reserver ID (business or person)"
msgstr "Reserv ID (företag eller person)"
msgid "Reserver ID (business)"
msgstr "Reserv ID (företag)"

msgid "Reserver email address"
msgstr "Reserverares email adress"
Expand Down
18 changes: 18 additions & 0 deletions resources/migrations/0147_reserver_id_only_business.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2023-08-28 11:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('resources', '0146_add_private_event_field'),
]

operations = [
migrations.AlterField(
model_name='reservation',
name='reserver_id',
field=models.CharField(blank=True, max_length=30, verbose_name='Reserver ID (business)'),
),
]
2 changes: 1 addition & 1 deletion resources/models/reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class Reservation(ModifiableModel):
# extra detail fields for manually confirmed reservations

reserver_name = models.CharField(verbose_name=_('Reserver name'), max_length=100, blank=True)
reserver_id = models.CharField(verbose_name=_('Reserver ID (business or person)'), max_length=30, blank=True)
reserver_id = models.CharField(verbose_name=_('Reserver ID (business)'), max_length=30, blank=True)
reserver_email_address = models.EmailField(verbose_name=_('Reserver email address'), blank=True)
reserver_phone_number = models.CharField(verbose_name=_('Reserver phone number'), max_length=30, blank=True)
reserver_address_street = models.CharField(verbose_name=_('Reserver address street'), max_length=100, blank=True)
Expand Down

0 comments on commit 6c6969a

Please sign in to comment.