/tests/regressiontests/admin_scripts/models.py
Python | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | 95def5494caff3cae100d8f7701e788b MD5 | raw file
Possible License(s): BSD-3-Clause
- from django.db import models
- class Article(models.Model):
- headline = models.CharField(max_length=100, default='Default headline')
- pub_date = models.DateTimeField()
- def __unicode__(self):
- return self.headline
- class Meta:
- ordering = ('-pub_date', 'headline')
-