diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-07-20 19:33:32 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-07-20 19:33:32 +0000 |
| commit | 9944d8d5efbe514e8de1d9adcc316a61fded3b65 (patch) | |
| tree | 6ba9d2bcf1b77b8b3081aac5e0be055a6e7db4e6 /tests/regressiontests/mongodb/models.py | |
| parent | 9c6e1c89c595de5b6bd3180d59faf944a3093d6d (diff) | |
[soc2010/query-refactor] Added a ListField, currently only works on MongoDB.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/mongodb/models.py')
| -rw-r--r-- | tests/regressiontests/mongodb/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/regressiontests/mongodb/models.py b/tests/regressiontests/mongodb/models.py index 274c1936a1..f0d950dcbb 100644 --- a/tests/regressiontests/mongodb/models.py +++ b/tests/regressiontests/mongodb/models.py @@ -19,3 +19,15 @@ class Group(models.Model): name = models.CharField(max_length=255) year_formed = models.IntegerField(null=True) + +class Post(models.Model): + id = models.NativeAutoField(primary_key=True) + title = models.CharField(max_length=255) + + tags = models.ListField( + models.CharField(max_length=255) + ) + + magic_numbers = models.ListField( + models.IntegerField() + ) |
