Bloks

Blok address

Memento

This blok helps to manage addresses.

It defines a basic address model ready to be used in any project.

AnyBlok Address doc

Address

Address model

class anyblok_address.bloks.address.address.Address

Bases: anyblok.mixin.UuidColumn, anyblok.mixin.TrackModel

Postal address

Declaration type:
 

Model

Tablename:

address

Registry name:

Model.Address

Inherit model or mixin:
 
  • <class ‘anyblok.mixin.UuidColumn’>
  • <class ‘anyblok.mixin.TrackModel’>
field name Description
last_name
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • size - 64
  • is crypted - False
  • Label - Last name
  • Field type - <class ‘anyblok.column.String’>
  • nullable - False
  • DB column name - None
  • foreign_key - None
  • Context:
phone2
  • size - 64
  • is crypted - False
  • Label - Phone 2
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
email
  • size - 64
  • is crypted - False
  • Label - Email
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
zip_code
  • size - 64
  • is crypted - False
  • Label - Postal Code
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
first_name
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • size - 64
  • is crypted - False
  • Label - First name
  • Field type - <class ‘anyblok.column.String’>
  • nullable - False
  • DB column name - None
  • foreign_key - None
  • Context:
state
  • size - 64
  • is crypted - False
  • Label - State
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
company_name
  • size - 64
  • is crypted - False
  • Label - Company name
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
street2
  • size - 64
  • is crypted - False
  • Label - Street line 2
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
country
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • size - 64
  • is crypted - False
  • Label - Country
  • Field type - <class ‘anyblok.column.Selection’>
  • selections:
  • GIN - Guinea
  • TGO - Togo
  • CRI - Costa Rica
  • SEN - Senegal
  • BLM - Saint Barthélemy
  • MTQ - Martinique
  • BHS - Bahamas
  • HMD - Heard Island and McDonald Islands
  • PAK - Pakistan
  • BLR - Belarus
  • USA - United States
  • VIR - Virgin Islands, U.S.
  • OMN - Oman
  • AGO - Angola
  • KIR - Kiribati
  • ATG - Antigua and Barbuda
  • AUS - Australia
  • AFG - Afghanistan
  • GRC - Greece
  • MDV - Maldives
  • JEY - Jersey
  • TWN - Taiwan, Province of China
  • ESH - Western Sahara
  • GNB - Guinea-Bissau
  • ARG - Argentina
  • CZE - Czechia
  • FLK - Falkland Islands (Malvinas)
  • SVN - Slovenia
  • JOR - Jordan
  • STP - Sao Tome and Principe
  • ERI - Eritrea
  • VAT - Holy See (Vatican City State)
  • ESP - Spain
  • SPM - Saint Pierre and Miquelon
  • PHL - Philippines
  • HKG - Hong Kong
  • WSM - Samoa
  • SLE - Sierra Leone
  • NFK - Norfolk Island
  • SHN - Saint Helena, Ascension and Tristan da Cunha
  • CXR - Christmas Island
  • PNG - Papua New Guinea
  • PSE - Palestine, State of
  • GMB - Gambia
  • WLF - Wallis and Futuna
  • BEN - Benin
  • MUS - Mauritius
  • LBN - Lebanon
  • MAR - Morocco
  • TCA - Turks and Caicos Islands
  • FJI - Fiji
  • PLW - Palau
  • NZL - New Zealand
  • NRU - Nauru
  • CHN - China
  • MMR - Myanmar
  • DJI - Djibouti
  • BHR - Bahrain
  • YEM - Yemen
  • COD - Congo, The Democratic Republic of the
  • DMA - Dominica
  • GEO - Georgia
  • GNQ - Equatorial Guinea
  • LUX - Luxembourg
  • CYM - Cayman Islands
  • SMR - San Marino
  • CMR - Cameroon
  • CIV - Côte d’Ivoire
  • ALA - Åland Islands
  • NOR - Norway
  • COG - Congo
  • MEX - Mexico
  • PRI - Puerto Rico
  • KNA - Saint Kitts and Nevis
  • TUV - Tuvalu
  • DNK - Denmark
  • VGB - Virgin Islands, British
  • SWZ - Swaziland
  • MNG - Mongolia
  • NER - Niger
  • BOL - Bolivia, Plurinational State of
  • BRA - Brazil
  • JAM - Jamaica
  • BEL - Belgium
  • KHM - Cambodia
  • MLI - Mali
  • GRL - Greenland
  • MYT - Mayotte
  • MNE - Montenegro
  • AUT - Austria
  • GBR - United Kingdom
  • ATA - Antarctica
  • SGS - South Georgia and the South Sandwich Islands
  • ARE - United Arab Emirates
  • SVK - Slovakia
  • LVA - Latvia
  • FSM - Micronesia, Federated States of
  • MCO - Monaco
  • TUN - Tunisia
  • SGP - Singapore
  • CCK - Cocos (Keeling) Islands
  • TUR - Turkey
  • ISL - Iceland
  • PRT - Portugal
  • UKR - Ukraine
  • MWI - Malawi
  • MSR - Montserrat
  • BTN - Bhutan
  • CUW - Curaçao
  • SUR - Suriname
  • SSD - South Sudan
  • MNP - Northern Mariana Islands
  • ZWE - Zimbabwe
  • LSO - Lesotho
  • BLZ - Belize
  • TLS - Timor-Leste
  • LBR - Liberia
  • GUF - French Guiana
  • LCA - Saint Lucia
  • PRY - Paraguay
  • NPL - Nepal
  • DEU - Germany
  • MKD - Macedonia, Republic of
  • LTU - Lithuania
  • MAC - Macao
  • SYR - Syrian Arab Republic
  • TON - Tonga
  • PYF - French Polynesia
  • BVT - Bouvet Island
  • NLD - Netherlands
  • BGD - Bangladesh
  • EST - Estonia
  • AZE - Azerbaijan
  • NAM - Namibia
  • AIA - Anguilla
  • RWA - Rwanda
  • EGY - Egypt
  • GIB - Gibraltar
  • GTM - Guatemala
  • TZA - Tanzania, United Republic of
  • SJM - Svalbard and Jan Mayen
  • UZB - Uzbekistan
  • ITA - Italy
  • ZAF - South Africa
  • NCL - New Caledonia
  • IRN - Iran, Islamic Republic of
  • PER - Peru
  • ASM - American Samoa
  • VNM - Viet Nam
  • ETH - Ethiopia
  • VEN - Venezuela, Bolivarian Republic of
  • VUT - Vanuatu
  • SXM - Sint Maarten (Dutch part)
  • MHL - Marshall Islands
  • SLV - El Salvador
  • GGY - Guernsey
  • TKM - Turkmenistan
  • ALB - Albania
  • VCT - Saint Vincent and the Grenadines
  • CHE - Switzerland
  • SDN - Sudan
  • MLT - Malta
  • LBY - Libya
  • TJK - Tajikistan
  • BDI - Burundi
  • HUN - Hungary
  • CPV - Cabo Verde
  • MYS - Malaysia
  • IND - India
  • IRL - Ireland
  • GRD - Grenada
  • HND - Honduras
  • POL - Poland
  • BRB - Barbados
  • CUB - Cuba
  • ECU - Ecuador
  • SLB - Solomon Islands
  • ABW - Aruba
  • ROU - Romania
  • ATF - French Southern Territories
  • PAN - Panama
  • FRO - Faroe Islands
  • TKL - Tokelau
  • LKA - Sri Lanka
  • BGR - Bulgaria
  • BRN - Brunei Darussalam
  • UMI - United States Minor Outlying Islands
  • TTO - Trinidad and Tobago
  • MRT - Mauritania
  • DOM - Dominican Republic
  • CHL - Chile
  • QAT - Qatar
  • MDG - Madagascar
  • CYP - Cyprus
  • TCD - Chad
  • FIN - Finland
  • ZMB - Zambia
  • FRA - France
  • MOZ - Mozambique
  • IOT - British Indian Ocean Territory
  • CAF - Central African Republic
  • CAN - Canada
  • HRV - Croatia
  • KGZ - Kyrgyzstan
  • MDA - Moldova, Republic of
  • DZA - Algeria
  • PCN - Pitcairn
  • GUY - Guyana
  • KEN - Kenya
  • IDN - Indonesia
  • BIH - Bosnia and Herzegovina
  • JPN - Japan
  • GUM - Guam
  • IMN - Isle of Man
  • BWA - Botswana
  • GLP - Guadeloupe
  • COK - Cook Islands
  • NGA - Nigeria
  • ARM - Armenia
  • MAF - Saint Martin (French part)
  • AND - Andorra
  • URY - Uruguay
  • IRQ - Iraq
  • HTI - Haiti
  • UGA - Uganda
  • SOM - Somalia
  • RUS - Russian Federation
  • PRK - Korea, Democratic People’s Republic of
  • THA - Thailand
  • BFA - Burkina Faso
  • SRB - Serbia
  • GHA - Ghana
  • KAZ - Kazakhstan
  • LIE - Liechtenstein
  • BMU - Bermuda
  • NIC - Nicaragua
  • REU - Réunion
  • KOR - Korea, Republic of
  • COL - Colombia
  • SYC - Seychelles
  • SAU - Saudi Arabia
  • KWT - Kuwait
  • COM - Comoros
  • LAO - Lao People’s Democratic Republic
  • NIU - Niue
  • ISR - Israel
  • BES - Bonaire, Sint Eustatius and Saba
  • GAB - Gabon
  • SWE - Sweden
  • nullable - False
  • DB column name - None
  • foreign_key - None
  • Context:
street1
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • size - 64
  • is crypted - False
  • Label - Street line 1
  • Field type - <class ‘anyblok.column.String’>
  • nullable - False
  • DB column name - None
  • foreign_key - None
  • Context:
city
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • size - 64
  • is crypted - False
  • Label - City
  • Field type - <class ‘anyblok.column.String’>
  • nullable - False
  • DB column name - None
  • foreign_key - None
  • Context:
phone1
  • size - 64
  • is crypted - False
  • Label - Phone 1
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context:
street3
  • size - 64
  • is crypted - False
  • Label - Street line 3
  • Field type - <class ‘anyblok.column.String’>
  • DB column name - None
  • default - <class ‘anyblok.column.NoDefaultValue’>
  • foreign_key - None
  • Context: