1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

boulder-oracle-sprint: Fixed #3164 in branch since it made basic unit tests

fail.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Boulder Sprinters
2006-12-18 17:36:01 +00:00
parent 93d83df611
commit f4aa493322
2 changed files with 7 additions and 37 deletions

View File

@@ -9,6 +9,8 @@ from django.db import models
class Article(models.Model):
headline = models.CharField(maxlength=100, default='Default headline')
pub_date = models.DateTimeField()
class Meta:
ordering = ('pub_date',)
def __str__(self):
return self.headline