parts/django/tests/regressiontests/admin_ordering/models.py
author Nishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 10:46:12 +0530
changeset 113 ac75d3cfa96f
parent 69 c6bca38c1cbf
permissions -rw-r--r--
updated the name

# coding: utf-8
from django.db import models

class Band(models.Model):
    name = models.CharField(max_length=100)
    bio = models.TextField()
    rank = models.IntegerField()

    class Meta:
        ordering = ('name',)