summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-03-21 16:09:48 +0100
committerClaude Paroz <claude@2xlibre.net>2015-03-21 16:10:24 +0100
commite0cc36f615f70061e034f5ba3f4e75330f51d3ca (patch)
tree3f65e7619a16c77eb752935d68f8775b997f70e8 /tests
parent53c2cf1e7b3f1c9a7794fcc5c4669145f351b2fa (diff)
Removed unneeded app_label definitions in gis_tests
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/geoadmin/models.py3
-rw-r--r--tests/gis_tests/geoapp/models.py9
-rw-r--r--tests/gis_tests/geogapp/models.py6
-rw-r--r--tests/gis_tests/layermap/models.py6
4 files changed, 0 insertions, 24 deletions
diff --git a/tests/gis_tests/geoadmin/models.py b/tests/gis_tests/geoadmin/models.py
index cf8470e792..1b389cafb6 100644
--- a/tests/gis_tests/geoadmin/models.py
+++ b/tests/gis_tests/geoadmin/models.py
@@ -10,9 +10,6 @@ class City(models.Model):
objects = models.GeoManager()
- class Meta:
- app_label = 'geoadmin'
-
def __str__(self):
return self.name
diff --git a/tests/gis_tests/geoapp/models.py b/tests/gis_tests/geoapp/models.py
index a0e910684d..de08715256 100644
--- a/tests/gis_tests/geoapp/models.py
+++ b/tests/gis_tests/geoapp/models.py
@@ -24,9 +24,6 @@ class Country(NamedModel):
class City(NamedModel):
point = models.PointField()
- class Meta:
- app_label = 'geoapp'
-
# This is an inherited model from City
class PennsylvaniaCity(City):
@@ -37,16 +34,10 @@ class PennsylvaniaCity(City):
objects = models.GeoManager()
- class Meta:
- app_label = 'geoapp'
-
class State(NamedModel):
poly = models.PolygonField(null=gisfield_may_be_null) # Allowing NULL geometries here.
- class Meta:
- app_label = 'geoapp'
-
class Track(NamedModel):
line = models.LineStringField()
diff --git a/tests/gis_tests/geogapp/models.py b/tests/gis_tests/geogapp/models.py
index 75102d22c9..cd6aaedad5 100644
--- a/tests/gis_tests/geogapp/models.py
+++ b/tests/gis_tests/geogapp/models.py
@@ -18,9 +18,6 @@ class NamedModel(models.Model):
class City(NamedModel):
point = models.PointField(geography=True)
- class Meta:
- app_label = 'geogapp'
-
class Zipcode(NamedModel):
code = models.CharField(max_length=10)
@@ -31,8 +28,5 @@ class County(NamedModel):
state = models.CharField(max_length=20)
mpoly = models.MultiPolygonField(geography=True)
- class Meta:
- app_label = 'geogapp'
-
def __str__(self):
return ' County, '.join([self.name, self.state])
diff --git a/tests/gis_tests/layermap/models.py b/tests/gis_tests/layermap/models.py
index f2c7882547..545f2fa75d 100644
--- a/tests/gis_tests/layermap/models.py
+++ b/tests/gis_tests/layermap/models.py
@@ -36,17 +36,11 @@ class City(NamedModel):
dt = models.DateField()
point = models.PointField()
- class Meta:
- app_label = 'layermap'
-
class Interstate(NamedModel):
length = models.DecimalField(max_digits=6, decimal_places=2)
path = models.LineStringField()
- class Meta:
- app_label = 'layermap'
-
# Same as `City` above, but for testing model inheritance.
class CityBase(NamedModel):