Fixed #6103 -- Splitted tests in model_forms tests
This commit is contained in:
parent
5a976b4bec
commit
72cfbdc10a
|
@ -71,10 +71,10 @@ class Article(models.Model):
|
|||
categories = models.ManyToManyField(Category, blank=True)
|
||||
status = models.PositiveIntegerField(choices=ARTICLE_STATUS, blank=True, null=True)
|
||||
|
||||
def save(self):
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.id:
|
||||
self.created = datetime.date.today()
|
||||
return super(Article, self).save()
|
||||
return super(Article, self).save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
return self.headline
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue