add default to cp field
This commit is contained in:
@ -185,7 +185,7 @@ class SystemSettings(models.Model):
|
||||
class Location(models.Model):
|
||||
location_id=models.IntegerField(_('Location id'), blank=True, null=True)
|
||||
sub_loc_id=models.IntegerField(_('Sub location id'), blank=True, null=True)
|
||||
cp=models.FloatField(_('Check Point'), blank=True, null=True)
|
||||
cp=models.FloatField(_('Check Point'), blank=False, null=True, default=0)
|
||||
location_name=models.CharField(_('Location Name'), max_length=2048, default="--- 場所をお願いします --")
|
||||
category=models.CharField(_('Category'), max_length=2048, blank=True, null=True)
|
||||
subcategory=models.CharField(_('Sub Category'), max_length=2048, blank=True, null=True)
|
||||
@ -238,7 +238,7 @@ class Location(models.Model):
|
||||
class templocation(models.Model):
|
||||
location_id=models.IntegerField(_('Location id'), blank=True, null=True)
|
||||
sub_loc_id=models.IntegerField(_('Sub location id'), blank=True, null=True)
|
||||
cp=models.FloatField(_('Check Point'), blank=True, null=True)
|
||||
cp=models.FloatField(_('Check Point'), blank=False, null=True, default=0)
|
||||
location_name=models.CharField(_('Location Name'), max_length=2048, default="--- 場所をお願いします --")
|
||||
category=models.CharField(_('Category'), max_length=2048, blank=True, null=True)
|
||||
subcategory=models.CharField(_('Sub Category'), max_length=2048, blank=True, null=True)
|
||||
|
||||
Reference in New Issue
Block a user