mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
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
This commit is contained in:
parent
96a47da015
commit
9376d4ed5b
9 changed files with 862 additions and 0 deletions
12
tests/regressiontests/admin_scripts/models.py
Normal file
12
tests/regressiontests/admin_scripts/models.py
Normal file
|
@ -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')
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue