mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
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:
parent
7f2392981d
commit
fed257ddff
2 changed files with 21 additions and 0 deletions
|
@ -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'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue