mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
11 lines
276 B
Python
11 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
|