Fix tests

This commit is contained in:
Thomas Leonard 2021-02-13 16:24:37 +01:00
parent 3636780337
commit ffdab2f077

View File

@ -91,8 +91,8 @@ class CNNReporter(Reporter):
class Article(models.Model): class Article(models.Model):
headline = models.CharField(max_length=100) headline = models.CharField(max_length=100)
pub_date = models.DateField() pub_date = models.DateField(auto_now_add=True)
pub_date_time = models.DateTimeField() pub_date_time = models.DateTimeField(auto_now_add=True)
reporter = models.ForeignKey( reporter = models.ForeignKey(
Reporter, on_delete=models.CASCADE, related_name="articles" Reporter, on_delete=models.CASCADE, related_name="articles"
) )