Some models and stuff

This commit is contained in:
Kumi 2022-08-04 17:58:57 +02:00
parent a38d324bdb
commit eeb846d17b
Signed by: kumi
GPG key ID: 6C2B851B15DF1681
14 changed files with 128 additions and 7 deletions

15
core/models/geo.py Normal file
View 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)