Fixed #6103 -- Splitted tests in model_forms tests

This commit is contained in:
Claude Paroz 2014-03-14 09:44:56 +01:00
parent 5a976b4bec
commit 72cfbdc10a
2 changed files with 355 additions and 394 deletions

View File

@ -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