PageRenderTime 33ms CodeModel.GetById 11ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. from django.db import models
  2. from django.conf import settings
  3. class Article(models.Model):
  4. headline = models.CharField(max_length=100, default='Default headline')
  5. pub_date = models.DateTimeField()
  6. def __unicode__(self):
  7. return self.headline
  8. class Meta:
  9. app_label = 'fixtures_model_package'
  10. ordering = ('-pub_date', 'headline')