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, anyblok.mixin.BooleanReadOnly

Postal address

AnyBlok registration:

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