Commit f11359f4 authored by Rafal's avatar Rafal

Add range to localization model

parent 7f3dd59d
......@@ -7,6 +7,7 @@ class Localization(models.Model):
name = models.CharField(max_length=300)
longitude = models.DecimalField(max_digits=9, decimal_places=6, default=None)
latitude = models.DecimalField(max_digits=9, decimal_places=6, default=None)
range = models.IntegerField(default=None)
def __str__(self):
return self.name
\ No newline at end of file
......@@ -5,5 +5,5 @@ from app.Localization.models import Localization
class LocalizationSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Localization
fields = ('url', 'name', 'longitude', 'latitude')
fields = ('url', 'name', 'longitude', 'latitude', 'range')
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