# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from decimal import Decimal
from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from model_utils.models import TimeStampedModel


class Country(TimeStampedModel):
    """

    """
    name = models.CharField(max_length=255)

    class Meta:
        ordering = ['id']

    def __str__(self):
        return "Country: {} <pk:{}>".format(self.name, self.id)


class Point(TimeStampedModel):
    lat = models.DecimalField(
        verbose_name='Latitude',
        null=True,
        blank=True,
        max_digits=8,
        decimal_places=5,
        validators=[MinValueValidator(Decimal(-180)), MaxValueValidator(Decimal(180))]
    )
    lon = models.DecimalField(
        verbose_name='Longitude',
        null=True,
        blank=True,
        max_digits=8,
        decimal_places=5,
        validators=[MinValueValidator(Decimal(-180)), MaxValueValidator(Decimal(180))]
    )
    admin_level_1 = models.CharField(max_length=255)

    class Meta:
        ordering = ['id']

    def __str__(self):
        return "Point <pk:{}>".format(self.id)

@@ -1142,16 +1142,555 @@
 format(self.id)%0A
+%0A%0Aclass Sector(TimeStampedModel):%0A    %22%22%22%0A%0A    %22%22%22%0A    name = models.CharField(max_length=255)%0A%0A    class Meta:%0A        ordering = %5B'id'%5D%0A%0A    def __str__(self):%0A        return %22Sector: %7B%7D %3Cpk:%7B%7D%3E%22.format(self.name, self.id)%0A%0A%0Aclass Specialization(TimeStampedModel):%0A    %22%22%22%0A%0A    %22%22%22%0A    name = models.CharField(max_length=255)%0A    category = models.ForeignKey(Sector, related_name=%22specializations%22)%0A%0A    class Meta:%0A        ordering = %5B'id'%5D%0A%0A    def __str__(self):%0A        return %22Specialization: %7B%7D %3Cpk:%7B%7D%3E%22.format(self.name, self.id)%0A

add models: Sector, Specialization