diff -r 5ff1fc726848 -r c6bca38c1cbf parts/django/tests/modeltests/basic/models.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parts/django/tests/modeltests/basic/models.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,17 @@ +# coding: utf-8 +""" +1. Bare-bones model + +This is a basic model with only two non-primary-key fields. +""" +from django.db import models, DEFAULT_DB_ALIAS + +class Article(models.Model): + headline = models.CharField(max_length=100, default='Default headline') + pub_date = models.DateTimeField() + + class Meta: + ordering = ('pub_date','headline') + + def __unicode__(self): + return self.headline