application: enable lingo components (#86290)
gitea/hobo/pipeline/head This commit looks good Details

This commit is contained in:
Lauréline Guérin 2024-01-30 11:27:05 +01:00
parent f560c2e1cc
commit 5423cdf475
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,8 @@ class Application(models.Model):
modules.append('combo')
if settings.HOBO_APPLICATION_CHRONO_SUPPORT:
modules.append('chrono')
if settings.HOBO_APPLICATION_LINGO_SUPPORT:
modules.append('lingo')
return modules
def save(self, *args, **kwargs):

View File

@ -249,6 +249,9 @@ HOBO_APPLICATION_COMBO_SUPPORT = False
# Support for chrono elements in applications
HOBO_APPLICATION_CHRONO_SUPPORT = False
# Support for lingo elements in applications
HOBO_APPLICATION_LINGO_SUPPORT = False
# Phone prefixes by country for phone number as authentication identifier
PHONE_COUNTRY_CODES = {
'32': {'region': 'BE', 'region_desc': _('Belgium')},