Moldova (md
)¶
Forms¶
-
class
localflavor.md.forms.
MDCompanyTypesSelect
(attrs=None)[source]¶ A Select widget that uses a list of Moldavian company types as its choices.
New in version 2.1.
-
class
localflavor.md.forms.
MDIDNOField
(*args, **kwargs)[source]¶ A form field for the Moldavian company identification number (IDNO).
New in version 2.1.
Models¶
-
class
localflavor.md.models.
MDCompanyTypeField
(*args, **kwargs)[source]¶ A model field for the Moldavian company type abbreviation.
New in version 2.1.
-
deconstruct
()[source]¶ Return enough information to recreate the field as a 4-tuple:
The name of the field on the model, if contribute_to_class() has been run.
The import path of the field, including the class:e.g. django.db.models.IntegerField This should be the most portable version, so less specific may be better.
A list of positional arguments.
A dict of keyword arguments.
Note that the positional or keyword arguments must contain values of the following types (including inner values of collection types):
None, bool, str, int, float, complex, set, frozenset, list, tuple, dict
UUID
datetime.datetime (naive), datetime.date
top-level classes, top-level functions - will be referenced by their full import path
Storage instances - these have their own deconstruct() method
This is because the values here must be serialized into a text format (possibly new Python code, possibly JSON) and these are the only types with encoding handlers defined.
There’s no need to return the exact way the field was instantiated this time, just ensure that the resulting field is the same - prefer keyword arguments over positional ones, and omit parameters with their default values.
-
Validators¶
-
class
localflavor.md.validators.
MDIDNOFieldValidator
(regex=None, message=None, code=None, inverse_match=None, flags=None)[source]¶ Validation for Moldavian IDNO.
New in version 2.1.
-
class
localflavor.md.validators.
MDLicensePlateValidator
(regex=None, message=None, code=None, inverse_match=None, flags=None)[source]¶ Validation for Moldavian License Plates.
New in version 2.1.
Data¶
-
localflavor.md.choices.
COMPANY_TYPES_CHOICES
= (('II', 'Întreprindere Individuală'), ('SA', 'Societate pe acţiuni'), ('SNC', 'Societate în nume colectiv'), ('SC', 'Societatea în comandită'), ('CP', 'Cooperativa de producţie'), ('CI', 'Cooperativa de întreprinzători'), ('SRL', 'Societate cu răspundere limitată'), ('GT', 'Gospodăria ţărănească'))¶ tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable’s items
If the argument is a tuple, the return value is the same object.
-
localflavor.md.choices.
LICENSE_PLATE_DIPLOMATIC
= (('CD', 'Diplomatic Corps'), ('TS', 'Service Staff'), ('TC', 'Consular Staff'), ('CA', 'Administrative body'))¶ tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable’s items
If the argument is a tuple, the return value is the same object.
-
localflavor.md.choices.
LICENSE_PLATE_GOVERNMENT_TYPE
= (('P', 'Parliament'), ('G', 'Government'), ('A', 'Chancellery'))¶ tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable’s items
If the argument is a tuple, the return value is the same object.
-
localflavor.md.choices.
LICENSE_PLATE_POLICE
= (('MAI', 'Ministry of Internal Affairs'), ('MIC', 'Carabinieri Subdivision'), ('FA', 'Military Forces'), ('DG', 'Border Control'))¶ tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable’s items
If the argument is a tuple, the return value is the same object.