5👍
✅
OK, I found the problem myself: I forgot to use models.GeoManager
as the default manager. This fixes my problem:
class TestModel(models.Model):
name = models.CharField(max_length=10)
location = models.PointField()
objects = models.GeoManager()
Source:stackexchange.com