Fix gps required
This commit is contained in:
parent
10fb1167b4
commit
d6039f5767
2 changed files with 25 additions and 2 deletions
23
gym/migrations/0005_auto_20180304_1025.py
Normal file
23
gym/migrations/0005_auto_20180304_1025.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue