Reputation: 1091
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
Reputation: 246578
GeoDjango supports the PostGIS data types, not the native PostgreSQL geometric data types.
Upvotes: 1