Commit e0cc36f6 authored by Claude Paroz's avatar Claude Paroz
Browse files

Removed unneeded app_label definitions in gis_tests

parent 53c2cf1e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -10,9 +10,6 @@ class City(models.Model):

    objects = models.GeoManager()

    class Meta:
        app_label = 'geoadmin'

    def __str__(self):
        return self.name

+0 −9
Original line number Diff line number Diff line
@@ -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()
+0 −6
Original line number Diff line number Diff line
@@ -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])
+0 −6
Original line number Diff line number Diff line
@@ -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):