from django.db import models
from django_countries import CountryField


class Address(models.Model):
    """
    A postal address.
    """

    address_line1 = models.CharField(max_length=100, blank=True)
    address_line2 = models.CharField(max_length=100, blank=True)
    city = models.CharField(max_length=100, blank=True)
    state = models.CharField(max_length=100, blank=True)
    country = CountryField(blank=True)
    zip_code = models.CharField(max_length=20, blank=True)

    def __unicode__(self):
        return self.address_line1[:80]

    class Meta:
        abstract = True

from django.db import models
from django_countries import CountryField


class Address(models.Model):
    """
    A postal address.
    """
    line1 = models.CharField(max_length=100, blank=True)
    line2 = models.CharField(max_length=100, blank=True)
    city = models.CharField(max_length=100, blank=True)
    state = models.CharField(max_length=100, blank=True)
    country = CountryField(blank=True)
    zip_code = models.CharField(max_length=20, blank=True)

    def __unicode__(self):
        return self.address_line1[:80]

    class Meta:
        abstract = True

Remove the address_ prefix from line1 and line2 in the Address model.
Remove the address_ prefix from line1 and line2 in the Address model.

The address_ prefix is redundant now that we have an Address model.
