from django.db import models

from django_enumfield import EnumField

from librement.utils.user_data import PerUserData

from .enums import AccountEnum, CountryEnum

class Profile(PerUserData('profile')):
    account_type = EnumField(AccountEnum)

    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)

@@ -635,12 +635,211 @@
 ountryEnum)%0A
+%0Aclass Email(models.Model):%0A    user = models.ForeignKey('auth.User', related_name='emails')%0A%0A    email = models.EmailField(unique=True)%0A%0A    def __unicode__(self):%0A        return u%22%25s%22 %25 self.email%0A

Add model for storing multiple email addresses.