Skip to content

Commit

Permalink
App BEMAS: neuer Bearbeitungsstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmhrogut committed Aug 30, 2023
1 parent ecc6257 commit b2081c3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions bemas/migrations/0002_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def load_initial_data(apps, schema_editor):
title='abgeschlossen',
icon='check'
)
status.objects.create(
ordinal=3,
title='nicht zuständig',
icon='thumbs-down'
)
sector = apps.get_model('bemas', 'Sector')
sector.objects.create(
title='Anlage an Wohnhaus',
Expand Down
12 changes: 6 additions & 6 deletions bemas/tests/tests_codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ class StatusModelTest(DefaultCodelistTestCase):
"""

model = Status
count = 2
count = 3
attributes_values_db_initial = {
'ordinal': 3,
'ordinal': 4,
'title': 'I0JBAMtz',
'icon': '3jw5UCfJ'
}
attributes_values_db_updated = {
'ordinal': 4,
'ordinal': 5,
'title': '4Ke2ZalC',
'icon': '3ZtNGShd'
}
attributes_values_view_initial = {
'ordinal': 5,
'ordinal': 6,
'title': 'C1wePTPw',
'icon': 'wacsjIgS'
}
attributes_values_view_updated = {
'ordinal': 6,
'ordinal': 7,
'title': 'Ye5nXUid',
'icon': 'ABys0FRo'
}
attributes_values_view_invalid = {
'ordinal': 6,
'ordinal': 7,
'title': INVALID_STRING,
'icon': INVALID_STRING
}
Expand Down
2 changes: 1 addition & 1 deletion toolbox/constants_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'muss der typographisch korrekte Apostroph (’) verwendet werden.'
hausnummer_regex = r'^[1-9][0-9]{0,2}[a-z]?$'
hausnummer_message = 'Die <strong><em>Hausnummer</em></strong> muss eine Zahl ' \
'zwischen 1 und 999 sein, optional gefolgt von einem Kleinbuchstaben.'
'zwischen 1 und 999 sein, optional direkt gefolgt von einem Kleinbuchstaben.'
hausnummer_zusatz_regex = r'^[a-z]$'
hausnummer_zusatz_message = 'Der <strong><em>Hausnummernzusatz</em>' \
'</strong> muss aus genau einem ' \
Expand Down

0 comments on commit b2081c3

Please sign in to comment.