Some models and stuff
This commit is contained in:
parent
a38d324bdb
commit
eeb846d17b
14 changed files with 128 additions and 7 deletions
15
core/models/geo.py
Normal file
15
core/models/geo.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from django.contrib.gis.db import models
|
||||
|
||||
from django_countries.fields import CountryField
|
||||
|
||||
|
||||
class Location(models.Model):
|
||||
address = CharField(max_length=256)
|
||||
address2 = CharField(max_length=256, null=True, blank=True)
|
||||
city = CharField(max_length=128)
|
||||
zipcode = CharField(max_length=16)
|
||||
state = CharField(max_length=128)
|
||||
country = CountryField()
|
||||
|
||||
floor = CharField(max_length=16, null=True, blank=True)
|
||||
door = CharField(max_length=16, null=True, blank=True)
|
Loading…
Add table
Add a link
Reference in a new issue