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

AnyBlok registration:

  • Type: Model
  • Registry name: Model.Address
  • Tablename: address
  • Inherited Models or Mixins:
    • anyblok.mixin.UuidColumn
    • anyblok.mixin.TrackModel
Fields  
company_name
  • Type - anyblok.column.String
  • Label - 'Company name'
  • default - anyblok.column.NoDefaultValue
  • size - 64
zip_code
  • Type - anyblok.column.String
  • Label - 'Postal Code'
  • default - anyblok.column.NoDefaultValue
  • size - 64
email
  • Type - anyblok.column.Email
  • Label - 'Email'
  • default - anyblok.column.NoDefaultValue
last_name
  • Type - anyblok.column.String
  • Label - 'Last name'
  • default - anyblok.column.NoDefaultValue
  • nullable - False
  • size - 64
phone1
  • Type - anyblok.column.PhoneNumber
  • max_length - 20
  • region - 'FR'
  • Label - 'Phone 1'
  • default - anyblok.column.NoDefaultValue
street1
  • Type - anyblok.column.String
  • Label - 'Street line 1'
  • default - anyblok.column.NoDefaultValue
  • nullable - False
  • size - 64
state
  • Type - anyblok.column.String
  • Label - 'State'
  • default - anyblok.column.NoDefaultValue
  • size - 64
street3
  • Type - anyblok.column.String
  • Label - 'Street line 3'
  • default - anyblok.column.NoDefaultValue
  • size - 64
phone2
  • Type - anyblok.column.PhoneNumber
  • max_length - 20
  • region - 'FR'
  • Label - 'Phone 2'
  • default - anyblok.column.NoDefaultValue
first_name
  • Type - anyblok.column.String
  • Label - 'First name'
  • default - anyblok.column.NoDefaultValue
  • nullable - False
  • size - 64
street2
  • Type - anyblok.column.String
  • Label - 'Street line 2'
  • default - anyblok.column.NoDefaultValue
  • size - 64
country
  • Type - anyblok.column.Country
  • Label - 'Country'
  • default - anyblok.column.NoDefaultValue
  • nullable - False
  • mode - 'alpha_3'
city
  • Type - anyblok.column.String
  • Label - 'City'
  • default - anyblok.column.NoDefaultValue
  • nullable - False
  • size - 64