1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00
Files
django/tests/regressiontests/multiple_database/models.py

12 lines
237 B
Python

from django.db import models
class Book(models.Model):
title = models.CharField(max_length=100)
published = models.DateField()
def __unicode__(self):
return self.title
class Meta:
ordering = ('title',)