mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 14:29:25 +08:00
12 lines
276 B
Python
12 lines
276 B
Python
|
from django.db import models
|
||
|
from django.contrib.gis.db import models as gis_models
|
||
|
# Create your models here.
|
||
|
|
||
|
|
||
|
class Landmark(models.Model):
|
||
|
name = models.CharField(max_length=64)
|
||
|
location = gis_models.PolygonField()
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.name
|