diff -r 5ff1fc726848 -r c6bca38c1cbf parts/django/tests/modeltests/pagination/models.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parts/django/tests/modeltests/pagination/models.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,17 @@ +""" +30. Object pagination + +Django provides a framework for paginating a list of objects in a few lines +of code. This is often useful for dividing search results or long lists of +objects into easily readable pages. +""" + +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