parts/django/tests/regressiontests/admin_ordering/models.py
author Nishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 22:43:55 +0530
changeset 98 01c1e6966d86
parent 69 c6bca38c1cbf
permissions -rw-r--r--
created template for create_task

# 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',)