Skip to content

Instantly share code, notes, and snippets.

@fritzvd
Created June 6, 2011 09:33
Show Gist options
  • Save fritzvd/1009998 to your computer and use it in GitHub Desktop.
Save fritzvd/1009998 to your computer and use it in GitHub Desktop.
Idea for a model
class Points(models.Model):
routes = models.ForeignKey(Routes)
categories = models.ForeignKey(Categories)
attribution = models.CharField(max_length=255)
title = models.CharField(max_length=65)
lat = models.FloatField()
lon = models.FloatField()
imageURL = models.URLField(verify_exists=True)
line2 = models.CharField(max_length=40)
line3 = models.CharField(max_length=40, blank=True, null=True)
line4 = models.CharField(max_length=40, blank=True, null=True)
type_s = models.IntegerField(max_length=11, blank=True, null=True)
dimension = models.IntegerField(max_length=1, blank=True, null=True)
alt = models.IntegerField(max_length=10, blank=True, null=True)
relativeAlt = models.IntegerField(max_length=10, blank=True, null=True)
actions = models.CharField(max_length=30, blank=True, null=True)
distance = models.FloatField()
inFocus = models.IntegerField(max_length=1, default=0)
doNotIndex = models.IntegerField(max_length=1, default=0)
showSmallBiW = models.IntegerField(max_length=1, default=1)
showBiWOnClick = models.IntegerField(max_length=1, default=0)
def __unicode__(self):
return self.title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment