old_console/company/models/location.py
2024-11-02 14:12:45 +03:00

15 lines
478 B
Python

from django.db import models
from django.utils.translation import gettext_lazy
class LocationCode(models.Model):
""" Directory of Country/Region in format ICO-3166-2"""
code = models.CharField(gettext_lazy('code'), max_length=15, help_text='Format from ISO-3166-2')
class Meta:
verbose_name = gettext_lazy('Country/Region code')
verbose_name_plural = gettext_lazy('Country/Region codes')
def __str__(self) -> str:
return self.code