Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added unit test to confirm #558

git-svn-id: http://code.djangoproject.com/svn/django/trunk@696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fa8662a13f0826a2f7eb4fb727307ad45c3e0175 1 parent 871ffbe
@adrianholovaty adrianholovaty authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/testapp/models/subclassing.py
View
12 tests/testapp/models/subclassing.py
@@ -54,6 +54,13 @@ class META:
module_name = 'subarticles5'
ordering = ('headline', 'pub_date')
+# These two models don't define a module_name.
+class NoModuleNameFirst(Article):
+ section = meta.CharField(maxlength=30)
+
+class NoModuleNameSecond(Article):
+ section = meta.CharField(maxlength=30)
+
API_TESTS = """
# No data is in the system yet.
>>> subarticles1.get_list()
@@ -165,4 +172,9 @@ class META:
# by headline ASC instead of pub_date DESC.
>>> subarticles5.get_list()
[A, B, C]
+
+>>> nomodulenamefirsts.get_list()
+[]
+>>> nomodulenameseconds.get_list()
+[]
"""
Please sign in to comment.
Something went wrong with that request. Please try again.