# Path: src/librement/profile/enums.py



from django_yadt import YADTImageField
from django_enumfield import EnumField
from django.db import models
from librement.utils.user_data import PerUserData
from .enums import AccountEnum, CountryEnum
# Copyright 2012 The Librement Developers
#
# See the AUTHORS file at the top-level directory of this distribution
# and at http://librement.net/copyright/
#
# This file is part of Librement. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this distribution
# and at http://librement.net/license/. No part of Librement, including
# this file, may be copied, modified, propagated, or distributed except
# according to the terms contained in the LICENSE file.





class Profile(PerUserData('profile')):
    account_type = EnumField(AccountEnum, default=AccountEnum.INDIVIDUAL)

    biography = models.TextField()
    display_name = models.CharField(max_length=100)

    organisation = models.CharField(max_length=100, blank=True)

    address_1 = models.CharField(max_length=150, blank=True)
    address_2 = models.CharField(max_length=150, blank=True)
    city = models.CharField(max_length=100, blank=True)
    region = models.CharField(max_length=100, blank=True)
    zipcode = models.CharField(max_length=100, blank=True)


# Path: src/librement/profile/enums.py



# Path: src/librement/profile/models.py
from django_yadt import YADTImageField
from django_enumfield import EnumField
from django.db import models
from librement.utils.user_data import PerUserData
from .enums import AccountEnum, CountryEnum

# Copyright 2012 The Librement Developers
#
# See the AUTHORS file at the top-level directory of this distribution
# and at http://librement.net/copyright/
#
# This file is part of Librement. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this distribution
# and at http://librement.net/license/. No part of Librement, including
# this file, may be copied, modified, propagated, or distributed except
# according to the terms contained in the LICENSE file.





class Profile(PerUserData('profile')):
    account_type = EnumField(AccountEnum, default=AccountEnum.INDIVIDUAL)

    biography = models.TextField()
    display_name = models.CharField(max_length=100)

    organisation = models.CharField(max_length=100, blank=True)

    address_1 = models.CharField(max_length=150, blank=True)
    address_2 = models.CharField(max_length=150, blank=True)
    city = models.CharField(max_length=100, blank=True)
    region = models.CharField(max_length=100, blank=True)
    zipcode = models.CharField(max_length=100, blank=True)


    country = EnumField(CountryEnum, default=CountryEnum.US)