Added the get_multi_language_attr() function to the Mia core application, to deal with the multi-lingual attributes, and applied it in the data models.

This commit is contained in:
2020-07-14 22:01:32 +08:00
parent a8d18ddd1e
commit fa034b9a6a
5 changed files with 92 additions and 11 deletions

View File

@ -88,7 +88,7 @@ FROM accounting_subjects AS s
ORDER BY s.code"""))
subjects.insert(0, Subject(
code="0",
title_zhtw=pgettext(
title=pgettext(
"Accounting|", "current assets and liabilities"),
))
current_subject = None