Fix gps required

This commit is contained in:
Gabriel Augendre 2018-03-04 10:27:06 +01:00
parent 10fb1167b4
commit d6039f5767
No known key found for this signature in database
GPG key ID: F360212F958357D4
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,23 @@
# Generated by Django 2.0.2 on 2018-03-04 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gym', '0004_auto_20180303_1801'),
]
operations = [
migrations.AlterField(
model_name='room',
name='latitude',
field=models.DecimalField(blank=True, decimal_places=8, max_digits=11, null=True, verbose_name='latitude'),
),
migrations.AlterField(
model_name='room',
name='longitude',
field=models.DecimalField(blank=True, decimal_places=8, max_digits=11, null=True, verbose_name='longitude'),
),
]

View file

@ -7,8 +7,8 @@ class Room(models.Model):
verbose_name_plural = 'salles' verbose_name_plural = 'salles'
name = models.CharField('nom', max_length=300) name = models.CharField('nom', max_length=300)
latitude = models.DecimalField('latitude', max_digits=11, decimal_places=8, blank=True) latitude = models.DecimalField('latitude', max_digits=11, decimal_places=8, blank=True, null=True)
longitude = models.DecimalField('longitude', max_digits=11, decimal_places=8, blank=True) longitude = models.DecimalField('longitude', max_digits=11, decimal_places=8, blank=True, null=True)
notes = models.TextField('notes', blank=True) notes = models.TextField('notes', blank=True)
def __str__(self): def __str__(self):