from __future__ import unicode_literals
from django.db import models
from django.contrib.gis.db import models
# Create your models here.
class Incidences(models.Model):
name = models.CharField(max_length=20)
location = models.PointField(srid=4326)
objects = models.GeoManager()
def __unicode__(self):
return self.name
class Meta:
verbose_name_plural =" Incidences"
class Municipios(models.Model):
inspireid = models.CharField(max_length=24,null=True)
country = models.CharField(max_length=2,null=True)