summaryrefslogtreecommitdiff
path: root/django/contrib/gis/tests/relatedapp/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/gis/tests/relatedapp/models.py')
-rw-r--r--django/contrib/gis/tests/relatedapp/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/gis/tests/relatedapp/models.py b/django/contrib/gis/tests/relatedapp/models.py
index 726f9826c0..2e9a62b61f 100644
--- a/django/contrib/gis/tests/relatedapp/models.py
+++ b/django/contrib/gis/tests/relatedapp/models.py
@@ -38,6 +38,11 @@ class Author(models.Model):
name = models.CharField(max_length=100)
objects = models.GeoManager()
+class Article(models.Model):
+ title = models.CharField(max_length=100)
+ author = models.ForeignKey(Author, unique=True)
+ objects = models.GeoManager()
+
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(Author, related_name='books', null=True)