Ticket #21273: models.py
File models.py, 422 bytes (added by , 11 years ago) |
---|
Line | |
---|---|
1 | # from django.db import models |
2 | from django.contrib.gis.db import models |
3 | |
4 | # Create your models here. |
5 | class Sdo_Test(models.Model): |
6 | id = models.IntegerField(primary_key=True) |
7 | name = models.CharField(max_length=100) |
8 | geom = models.TextField() |
9 | #geom = models.GeometryField(srid=82086) |
10 | |
11 | def __unicode__(self): |
12 | return self.name |
13 | |
14 | class Meta: |
15 | db_table = 'sdo_test' |