Prevented creation of 3D test models if not supported.

There's no problem creating the models on MySQL and Oracle
(which don't support 3D storage) but CockroachDB currently
crashes with a syntax error.
This commit is contained in:
Tim Graham 2020-09-14 21:33:58 -04:00 committed by Mariusz Felisiak
parent 7f2392981d
commit fed257ddff
2 changed files with 21 additions and 0 deletions

View file

@ -19,3 +19,6 @@ class Fields3D(models.Model):
pointg = models.PointField(dim=3, geography=True)
line = models.LineStringField(dim=3)
poly = models.PolygonField(dim=3)
class Meta:
required_db_features = {'supports_3d_storage'}