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

Class Article

tests/serializers/models/base.py:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68class Article(models.Model):
69 author = models.ForeignKey(Author, models.CASCADE)
70 headline = models.CharField(max_length=50)
71 pub_date = models.DateTimeField()
72 categories = models.ManyToManyField(Category)
73 meta_data = models.ManyToManyField(CategoryMetaData)
74 topics = models.ManyToManyField(Topic)
75
76 class Meta:
77 ordering = ("pub_date",)
78
79 def __str__(self):
80 return self.headline
81
82
83class AuthorProfile(models.Model):

Callers 1

setUpTestDataMethod · 0.50

Calls

no outgoing calls

Tested by 1

setUpTestDataMethod · 0.40