Region Models

These are currently under development and remain unpopulated :( All region data is available through the IANA subtag registry via RegionSubtag in Tag Models.

class jangle.models.regions.Region(id, tier, no, parent)[source]
names: models.manager.RelatedManager[RegionName]
class Tier(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
GLOBAL = 0
REGIONAL = 1
CONTINENTAL = 2
SUB_REGIONAL = 3
INTERMEDIARY = 4
COUNTRY = 5
tier

Classification.

no

ISO 3166-1 numeric / UN M.49 code.

parent

Parent region encompassing this one, if existing.

property no_str: str

Formatted string of numeric code.

get_name(iso_language: ISOLanguage) str[source]
get_tier_display(*, field=<django.db.models.fields.PositiveSmallIntegerField: tier>)
iso

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

objects = <django.db.models.manager.Manager object>
parent_id
region_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

subtag

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

class jangle.models.regions.RegionName(id, region, name, iso_lang)[source]
region
name
iso_lang

ISO language.

iso_lang_id
objects = <django.db.models.manager.Manager object>
region_id
class jangle.models.regions.ISORegion(*args, **kwargs)[source]

ISO 3166 region.

region
objects = <django.db.models.manager.Manager object>
region_id
alpha_2

ISO 3166-1 alpha-2 code.

alpha_3

ISO 3166-1 alpha-3 code.

in_ldc

In UN Least Developed Countries (LDC).

in_lldc

In UN Land Locked Developing Countries (LLDC).

in_sids

In UN Small Island Developing States (SIDS).