From 9376d4ed5bd175eff87788ccf11e761fdef42b8b Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 10 Jul 2008 12:12:41 +0000 Subject: Refs #5943, #6107 -- Added framework and tests to check for the correct operation of django-admin and manage.py. Thanks for Simon Willison and Karen Tracey for their contributions and assistance testing this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7876 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_scripts/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/regressiontests/admin_scripts/models.py (limited to 'tests/regressiontests/admin_scripts/models.py') diff --git a/tests/regressiontests/admin_scripts/models.py b/tests/regressiontests/admin_scripts/models.py new file mode 100644 index 0000000000..96a40d22b7 --- /dev/null +++ b/tests/regressiontests/admin_scripts/models.py @@ -0,0 +1,12 @@ +from django.db import models + +class Article(models.Model): + headline = models.CharField(max_length=100, default='Default headline') + pub_date = models.DateTimeField() + + def __unicode__(self): + return self.headline + + class Meta: + ordering = ('-pub_date', 'headline') + \ No newline at end of file -- cgit v1.3