Contents
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.BooleanReadOnly
Postal address
AnyBlok registration:
- Type: Model
- Registry name: Model.Address
- Tablename: address
- Inherited Models or Mixins:
anyblok.mixin.BooleanReadOnly
Fields country nullable
-False
Type
-anyblok.column.Country
mode
-'alpha_3'
default
-anyblok.column.NoDefaultValue
Label
-'Country'
street1 nullable
-False
Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Street line 1'
email Type
-anyblok.column.Email
default
-anyblok.column.NoDefaultValue
Label
-'Email'
create_date nullable
-False
is auto updated
-False
Type
-anyblok.column.DateTime
phone1 Type
-anyblok.column.PhoneNumber
region
-'FR'
default
-anyblok.column.NoDefaultValue
max_length
-20
Label
-'Phone 1'
zip_code Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Postal Code'
street3 Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Street line 3'
phone2 Type
-anyblok.column.PhoneNumber
region
-'FR'
default
-anyblok.column.NoDefaultValue
max_length
-20
Label
-'Phone 2'
edit_date nullable
-False
is auto updated
-True
Type
-anyblok.column.DateTime
city nullable
-False
Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'City'
state Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'State'
street2 Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Street line 2'
last_name nullable
-False
Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Last name'
first_name nullable
-False
Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'First name'
company_name Type
-anyblok.column.String
size
-64
default
-anyblok.column.NoDefaultValue
Label
-'Company name'
uuid native
-None
Type
-anyblok.column.UUID
binary
-False
default
-<function uuid1 at 0x7f384d683048>
primary_key
-True