~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/contrib/gis/tests/geoapp/models.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115191533-xbt1ut2xf4fvwtvc
Tags: 1.0.1-0ubuntu1
* New upstream release:
  - Bug fixes.

* The tests/ sub-directory appaers to have been dropped upstream, so pull
  our patch to workaround the tests and modify the rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    objects = models.GeoManager()
17
17
    def __unicode__(self): return self.name
18
18
 
 
19
# This is an inherited model from City
 
20
class PennsylvaniaCity(City):
 
21
    county = models.CharField(max_length=30)
 
22
    objects = models.GeoManager() # TODO: This should be implicitly inherited.
 
23
 
19
24
class State(models.Model):
20
25
    name = models.CharField(max_length=30)
21
26
    poly = models.PolygonField(null=null_flag) # Allowing NULL geometries here.