from django.contrib.gis.db import models
from model_utils.models import TimeStampedModel

from .uuid import UUIDModelMixin


class Address(UUIDModelMixin, TimeStampedModel):
    line1 = models.TextField()
    line2 = models.TextField(blank=True, default="")
    city = models.TextField()
    state = models.TextField()
    postal_code = models.TextField()
    country = models.TextField()
    coordinates = models.PointField()

    class Meta:
        app_label = 'api'
        permissions = (
            ('view_address', 'Can view address'),
        )

    def __str__(self):
        return "[{id}]: {line1}, {line2}, {city}, {state}, {postal_code}, {country}".format(
                id=str(self.id),
                line1=str(self.line1),
                line2=str(self.line2),
                city=str(self.city),
                state=str(self.state),
                postal_code=str(self.postal_code),
                country=str(self.country),
        )

99f556fb8403d64f8cde689cede7963ead35ea10
<mask token>


class Address(UUIDModelMixin, TimeStampedModel):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        app_label = 'api'
        permissions = ('view_address', 'Can view address'),
    <mask token>

<mask token>


class Address(UUIDModelMixin, TimeStampedModel):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        app_label = 'api'
        permissions = ('view_address', 'Can view address'),

    def __str__(self):
        return (
            '[{id}]: {line1}, {line2}, {city}, {state}, {postal_code}, {country}'
            .format(id=str(self.id), line1=str(self.line1), line2=str(self.
            line2), city=str(self.city), state=str(self.state), postal_code
            =str(self.postal_code), country=str(self.country)))

<mask token>


class Address(UUIDModelMixin, TimeStampedModel):
    line1 = models.TextField()
    line2 = models.TextField(blank=True, default='')
    city = models.TextField()
    state = models.TextField()
    postal_code = models.TextField()
    country = models.TextField()
    coordinates = models.PointField()


    class Meta:
        app_label = 'api'
        permissions = ('view_address', 'Can view address'),

    def __str__(self):
        return (
            '[{id}]: {line1}, {line2}, {city}, {state}, {postal_code}, {country}'
            .format(id=str(self.id), line1=str(self.line1), line2=str(self.
            line2), city=str(self.city), state=str(self.state), postal_code
            =str(self.postal_code), country=str(self.country)))

from django.contrib.gis.db import models
from model_utils.models import TimeStampedModel
from .uuid import UUIDModelMixin


class Address(UUIDModelMixin, TimeStampedModel):
    line1 = models.TextField()
    line2 = models.TextField(blank=True, default='')
    city = models.TextField()
    state = models.TextField()
    postal_code = models.TextField()
    country = models.TextField()
    coordinates = models.PointField()


    class Meta:
        app_label = 'api'
        permissions = ('view_address', 'Can view address'),

    def __str__(self):
        return (
            '[{id}]: {line1}, {line2}, {city}, {state}, {postal_code}, {country}'
            .format(id=str(self.id), line1=str(self.line1), line2=str(self.
            line2), city=str(self.city), state=str(self.state), postal_code
            =str(self.postal_code), country=str(self.country)))

from django.contrib.gis.db import models
from model_utils.models import TimeStampedModel

from .uuid import UUIDModelMixin


class Address(UUIDModelMixin, TimeStampedModel):
    line1 = models.TextField()
    line2 = models.TextField(blank=True, default="")
    city = models.TextField()
    state = models.TextField()
    postal_code = models.TextField()
    country = models.TextField()
    coordinates = models.PointField()

    class Meta:
        app_label = 'api'
        permissions = (
            ('view_address', 'Can view address'),
        )

    def __str__(self):
        return "[{id}]: {line1}, {line2}, {city}, {state}, {postal_code}, {country}".format(
                id=str(self.id),
                line1=str(self.line1),
                line2=str(self.line2),
                city=str(self.city),
                state=str(self.state),
                postal_code=str(self.postal_code),
                country=str(self.country),
        )
