Ruben
Ruben

Reputation: 1091

PointField does not become Point but Geometry

I am using a PointField:

class Location(AbstractBase):
    id = models.BigAutoField(primary_key=True)
    level = models.IntegerField()
    gps = models.PointField(blank=True, null=True, srid=4326)

However, when it is generated in postgresql, it becomes a GEOMETRY field. Why not data type "Point"? That one exists in PostgreSQL

Upvotes: 0

Views: 180

Answers (1)

Laurenz Albe
Laurenz Albe

Reputation: 246578

GeoDjango supports the PostGIS data types, not the native PostgreSQL geometric data types.

Upvotes: 1

Related Questions