Added district_name field
This commit is contained in:
parent
d0e75ca07c
commit
56b5af1291
|
|
@ -223,6 +223,8 @@ class Address(models.Model):
|
||||||
default='', help_text=_('Ex.: 350018'))
|
default='', help_text=_('Ex.: 350018'))
|
||||||
coordinates = models.PointField(
|
coordinates = models.PointField(
|
||||||
_('Coordinates'), blank=True, null=True, default=None)
|
_('Coordinates'), blank=True, null=True, default=None)
|
||||||
|
district_name = models.CharField(
|
||||||
|
_('District name'), max_length=500, blank=True, default='')
|
||||||
old_id = models.IntegerField(null=True, blank=True, default=None)
|
old_id = models.IntegerField(null=True, blank=True, default=None)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,7 @@ class AddressBaseSerializer(serializers.ModelSerializer):
|
||||||
'postal_code',
|
'postal_code',
|
||||||
'latitude',
|
'latitude',
|
||||||
'longitude',
|
'longitude',
|
||||||
|
'district_name',
|
||||||
|
|
||||||
# todo: remove this fields (backward compatibility)
|
# todo: remove this fields (backward compatibility)
|
||||||
'geo_lon',
|
'geo_lon',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user