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

Class Article

tests/dates/models.py:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class Article(models.Model):
6 title = models.CharField(max_length=100)
7 pub_date = models.DateField()
8 pub_datetime = models.DateTimeField(default=timezone.now)
9
10 categories = models.ManyToManyField("Category", related_name="articles")
11
12
13class Comment(models.Model):

Callers 1

Calls

no outgoing calls

Tested by 1