Restoroo/core/models/geo.py
2022-08-08 09:51:56 +00:00

15 lines
No EOL
538 B
Python

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)