Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 Counties(models.Model):
- counties = models.CharField(max_length=25)
- newSpots = models.IntegerField()
- activeSpots = models.IntegerField()
- destroyedSpots = models.IntegerField()
- moneyCollected = models.IntegerField()
- codes = models.IntegerField()
- cty_code = models.CharField(max_length=24)
- dis = models.IntegerField()
- geom = models.MultiPolygonField(srid=4326)
- def __unicode__(self):
- return self.counties
- class Meta:
- verbose_name_plural = 'Counties'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement