snapshot: modularize workflow model layer by responsibility

This commit is contained in:
Md Bayazid Bostame
2026-03-28 09:18:53 +01:00
parent 473b0a577c
commit 622b396986
9 changed files with 876 additions and 945 deletions

View File

@@ -0,0 +1,14 @@
from django.utils.translation import gettext_lazy as _
def normalized_language_code(value: str | None) -> str:
lang = (value or '').strip().split('-')[0].lower()
return lang or 'de'
REQUEST_STATUS_CHOICES = [
('submitted', _('Eingereicht')),
('processing', _('In Bearbeitung')),
('completed', _('Abgeschlossen')),
('failed', _('Fehlgeschlagen')),
]