Skip to content

SkipField No exception message supplied #92

@DannyAziz

Description

@DannyAziz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions