from django.db import models

class Endereco(models.Model):
    linha_1 = models.CharField(max_length=150)
    linha_2 = models.CharField(max_length=150, blank=True, null=True)
    cidade = models.CharField(max_length=100)
    estado = models.CharField(max_length=50)
    pais = models.CharField(max_length=70)
    latitude = models.IntegerField(blank=True, null=True)
    longitude = models.IntegerField(blank=True, null=True)

    def __str__(self):
        return self.linha_1
from django.db import models

class Endereco(models.Model):
    linha_1 = models.CharField(max_length=150)
    linha_2 = models.CharField(max_length=150, blank=True, null=True)
    cidade = models.CharField(max_length=100)
    estado = models.CharField(max_length=50)
    pais = models.CharField(max_length=70)
    latitude = models.IntegerField(blank=True, null=True)
    longitude = models.IntegerField(blank=True, null=True)

    def __str__(self):
        return self.linha_1