diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-03-21 17:38:23 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-03-23 19:52:49 +0100 |
| commit | 01ec127baec38b7f8281e6eca9def40f22c9e5ad (patch) | |
| tree | 5a79f7e4900958d28b3771d9831cd943b7aafe8e /tests | |
| parent | b4da88b1268668c11dd999a7a0915193c204bf04 (diff) | |
Fixed #12400 -- Allowed geometry fields in unique_together
Thanks Tim Graham for the review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoapp/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gis_tests/geoapp/models.py b/tests/gis_tests/geoapp/models.py index a0e910684d..877eb7d72c 100644 --- a/tests/gis_tests/geoapp/models.py +++ b/tests/gis_tests/geoapp/models.py @@ -57,6 +57,9 @@ class MultiFields(NamedModel): point = models.PointField() poly = models.PolygonField() + class Meta: + unique_together = ('city', 'point') + class Truth(models.Model): val = models.BooleanField(default=False) |
