This commit is contained in:
Mohamed Nouffer
2022-04-08 13:24:55 +05:30
parent d373283025
commit 550fd8b299
2 changed files with 25 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class SystemSettings(models.Model):
class Location(models.Model):
location_id=models.IntegerField(_('Location id'), blank=True, null=True)
location_name=models.CharField(_('Location Name'), max_length=255)
location_name=models.CharField(_('Location Name'), max_length=255, default="--- 場所をお願いします --")
category=models.CharField(_('Category'), max_length=255, blank=True, null=True)
zip=models.CharField(_('Zip code'), max_length=12, blank=True, null=True)
address = models.CharField(_('Address'), max_length=512, blank=True, null=True)
@ -142,7 +142,7 @@ class Location(models.Model):
geom=models.MultiPointField(srid=4326)
def __str__(self):
return str(self.location_id)
return self.location_name
class Location_line(models.Model):