class Page(models.Model):
category = models.ForeignKey(Category)
title = models.CharField(max_length=128)
url = models.URLField('Link')
views = models.IntegerField(default=0)
from app.models import Page
Page.objects.order_by('-views')