-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Here is my model:
class Location(models.Model):
venue = models.ForeignKey(Venue, related_name="location")
address = models.TextField(blank=True)
city = models.CharField(max_length=100, blank=True)
postal_code = models.CharField(max_length=100, blank=True)
country = models.CharField(max_length=100, blank=True)
point = models.PointField(null=True)
Here is my serializer:
class LocationSerializer(GeoFeatureModelSerializer):
class Meta:
model = Location
geo_field = "point"
fields = ("id",
"address",
"city",
"postal_code",
"country")
Django Version: 1.8.4
Exception Type: SkipField
Exception Location: /usr/local/lib/python2.7/dist-packages/rest_framework/fields.py in get_attribute, line 408
Any help?
Thanks
Metadata
Metadata
Assignees
Labels
No labels