You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
365 B
13 lines
365 B
#from django.db import models |
|
from django.contrib.gis.db import models |
|
|
|
# Create your models here. |
|
|
|
class Layer(models.Model): |
|
token = models.CharField(max_length=50) |
|
|
|
class Place(models.Model): |
|
lon = models.FloatField() |
|
lat = models.FloatField() |
|
name = models.CharField(max_length=50) |
|
layer = models.ForeignKey(Layer, on_delete=models.CASCADE)
|
|
|