diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:35:33 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:35:33 +0000 |
| commit | d29c457ad108ddc52e990b582b36cacc5eb0bb68 (patch) | |
| tree | dc0735e4a0ac91017129d83cc04d543a18c187d8 /tests | |
| parent | bf6a46d8ad11d49990a3878166cce2af2fc6c4fe (diff) | |
queryset-refactor: Merged to [6197]
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/model_regress/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/model_regress/models.py b/tests/regressiontests/model_regress/models.py index 7aa9e2a7c4..00c3bc96f0 100644 --- a/tests/regressiontests/model_regress/models.py +++ b/tests/regressiontests/model_regress/models.py @@ -20,6 +20,11 @@ class Article(models.Model): def __unicode__(self): return self.headline +class Movie(models.Model): + #5218: Test models with non-default primary keys / AutoFields + movie_id = models.AutoField(primary_key=True) + name = models.CharField(max_length=60) + __test__ = {'API_TESTS': """ (NOTE: Part of the regression test here is merely parsing the model declaration. The verbose_name, in particular, did not always work.) |
