Commit 03b553f9 authored by Dominik Rosiek's avatar Dominik Rosiek

Merge branch 'master' of gitlab.telemabk.pl:dominik/BeHub-web

parents 30a831cb c8930957
...@@ -27,7 +27,7 @@ class Beacon(models.Model): ...@@ -27,7 +27,7 @@ class Beacon(models.Model):
description = models.CharField(max_length=300, null=True) description = models.CharField(max_length=300, null=True)
longitude = models.DecimalField(max_digits=9, decimal_places=6) longitude = models.DecimalField(max_digits=9, decimal_places=6)
latitude = models.DecimalField(max_digits=9, decimal_places=6) latitude = models.DecimalField(max_digits=9, decimal_places=6)
beacon_manager = models.OneToOneField('BeaconManager', blank=True, related_name='beacon_manager') beacon_manager = models.OneToOneField('BeaconManager', blank=True, related_name='beacon_manager', null=True)
def __str__(self): def __str__(self):
return "name: {name}, uuid:{uuid}".format(name=self.name, uuid=self.uuid) return "name: {name}, uuid:{uuid}".format(name=self.name, uuid=self.uuid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment