Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_id(self):
return 'r' + str(self.id)
class Meta:
db_table = u'routes'
db_tablespace = u'slopemap'
class SegmentTableModel(models.Model):
"""Segment table.
"""
id = cfields.BigIntegerField(primary_key=True)
nodes = cfields.BigIntArrayField()
ways = cfields.BigIntArrayField()
rels = cfields.BigIntArrayField()
geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])
class Meta:
abstract = True
class HikingSegments(SegmentTableModel):
country = models.CharField(max_length=2, null=True)
objects = models.GeoManager()
class Meta:
db_table = u'segments'
db_tablespace = u'hiking'
class CyclingSegments(SegmentTableModel):
return self._tags
def get_id(self):
return 'r' + str(self.id)
class Meta:
db_table = u'routes'
db_tablespace = u'slopemap'
class SegmentTableModel(models.Model):
"""Segment table.
"""
id = cfields.BigIntegerField(primary_key=True)
nodes = cfields.BigIntArrayField()
ways = cfields.BigIntArrayField()
rels = cfields.BigIntArrayField()
geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])
class Meta:
abstract = True
class HikingSegments(SegmentTableModel):
country = models.CharField(max_length=2, null=True)
objects = models.GeoManager()
class Meta:
db_table = u'segments'
db_tablespace = u'hiking'
def get_id(self):
return 'r' + str(self.id)
class Meta:
db_table = u'routes'
db_tablespace = u'slopemap'
class SegmentTableModel(models.Model):
"""Segment table.
"""
id = cfields.BigIntegerField(primary_key=True)
nodes = cfields.BigIntArrayField()
ways = cfields.BigIntArrayField()
rels = cfields.BigIntArrayField()
geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])
class Meta:
abstract = True
class HikingSegments(SegmentTableModel):
country = models.CharField(max_length=2, null=True)
objects = models.GeoManager()
class Meta:
db_table = u'segments'
db_tablespace = u'hiking'
class CyclingSegments(SegmentTableModel):
objects = models.GeoManager()