|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from django.contrib.gis.db import models as gis_models
|
|
|
|
from django.contrib.gis.db import models as gis_models
|
|
|
|
from django.db import models
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
@ -5,6 +6,8 @@ from postamates.settings import SRID
|
|
|
|
from service.enums import PointStatus
|
|
|
|
from service.enums import PointStatus
|
|
|
|
from service.signals import *
|
|
|
|
from service.signals import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User._meta.get_field('email')._unique = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PlacementPoint(models.Model):
|
|
|
|
class PlacementPoint(models.Model):
|
|
|
|
STATUS_CHOICES = [(tag.name, tag.value) for tag in PointStatus]
|
|
|
|
STATUS_CHOICES = [(tag.name, tag.value) for tag in PointStatus]
|
|
|
|
|