| Total Complexity | 0 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from candv import Constants |
||
| 2 | from candv import VerboseConstant |
||
| 3 | from candv import with_constant_class |
||
| 4 | |||
| 5 | from ._translations import gettext_lazy as _ |
||
| 6 | from ._utils import export |
||
| 7 | |||
| 8 | |||
| 9 | @export |
||
| 10 | class CountryConstant(VerboseConstant): |
||
| 11 | ... |
||
| 12 | |||
| 13 | |||
| 14 | @export |
||
| 15 | class COUNTRIES(with_constant_class(CountryConstant), Constants): |
||
| 16 | AU = CountryConstant(verbose_name=_("Australia")) |
||
| 17 | FI = CountryConstant(verbose_name=_("Finland")) |
||
| 18 | FR = CountryConstant(verbose_name=_("France")) |
||
| 19 | DE = CountryConstant(verbose_name=_("Germany")) |
||
| 20 | HU = CountryConstant(verbose_name=_("Hungary")) |
||
| 21 | JP = CountryConstant(verbose_name=_("Japan")) |
||
| 22 | IT = CountryConstant(verbose_name=_("Italy")) |
||
| 23 | NL = CountryConstant(verbose_name=_("Netherlands")) |
||
| 24 | NZ = CountryConstant(verbose_name=_("New Zealand")) |
||
| 25 | PL = CountryConstant(verbose_name=_("Poland")) |
||
| 26 | RO = CountryConstant(verbose_name=_("Romania")) |
||
| 27 | SK = CountryConstant(verbose_name=_("Slovakia")) |
||
| 28 | SU = CountryConstant(verbose_name=_("Soviet Union")) |
||
| 29 | UK = CountryConstant(verbose_name=_("United Kingdom")) |
||
| 30 | US = CountryConstant(verbose_name=_("United States")) |
||
| 31 |