MCPcopy
hub / github.com/django/django / Article

Class Article

tests/basic/models.py:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class Article(models.Model):
7 headline = models.CharField(max_length=100, default="Default headline")
8 pub_date = models.DateTimeField()
9
10 class Meta:
11 ordering = ("pub_date", "headline")
12
13 def __str__(self):
14 return self.headline
15
16
17class FeaturedArticle(models.Model):

Calls

no outgoing calls