PageRenderTime 47ms CodeModel.GetById 44ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/modeltests/fixtures_model_package/models/__init__.py

https://code.google.com/p/mango-py/
Python | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 75108cefe88fbb56b336f7610c2d7a81 MD5 | raw file
 1from django.db import models
 2from django.conf import settings
 3
 4class Article(models.Model):
 5    headline = models.CharField(max_length=100, default='Default headline')
 6    pub_date = models.DateTimeField()
 7
 8    def __unicode__(self):
 9        return self.headline
10
11    class Meta:
12        app_label = 'fixtures_model_package'
13        ordering = ('-pub_date', 'headline')
14