django/tests/regressiontests/admin_ordering/models.py

11 lines
224 B
Python

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