from django.contrib.gis.db import models from django_countries.fields import CountryField class Location(models.Model): address = models.CharField(max_length=256) address2 = models.CharField(max_length=256, null=True, blank=True) city = models.CharField(max_length=128) zipcode = models.CharField(max_length=16) state = models.CharField(max_length=128) country = CountryField() floor = models.CharField(max_length=16, null=True, blank=True) door = models.CharField(max_length=16, null=True, blank=True)