mirror of
https://github.com/Llloooggg/WhereToGo.git
synced 2026-03-06 20:46:24 +03:00
20 lines
480 B
Python
20 lines
480 B
Python
from django.contrib.gis.db import models as gis_models
|
|
from django.db import models
|
|
|
|
|
|
class Facility(models.Model):
|
|
name = models.CharField(max_length=200)
|
|
address = models.CharField(max_length=100)
|
|
city = models.CharField(max_length=50)
|
|
location = gis_models.PointField(
|
|
null=True,
|
|
blank=True,
|
|
)
|
|
|
|
class Meta:
|
|
verbose_name = "facility"
|
|
verbose_name_plural = "Facilities"
|
|
|
|
def __unicode__(self):
|
|
return self.name
|