Advertisement
Guest User

Untitled

a guest
May 25th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. class Incidences(models.Model):
  2. name = models.CharField(max_length=20)
  3. location = models.PointField(srid=4326)
  4. objects = models.GeoManager()
  5.  
  6. def __unicode__(self):
  7. return self.name
  8.  
  9. class Meta:
  10. verbose_name_plural =" Incidences"
  11.  
  12. class Counties(models.Model):
  13. counties = models.CharField(max_length=25)
  14. newSpots = models.IntegerField()
  15. activeSpots = models.IntegerField()
  16. destroyedSpots = models.IntegerField()
  17. moneyCollected = models.IntegerField()
  18. codes = models.IntegerField()
  19. cty_code = models.CharField(max_length=24)
  20. dis = models.IntegerField()
  21. geom = models.MultiPolygonField(srid=4326)
  22.  
  23. def __unicode__(self):
  24. return self.counties
  25.  
  26. class Meta:
  27. verbose_name_plural = 'Counties'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement