Adding modified and created fields to GeneratedCertificates

This commit is contained in:
John Jarvis
2012-11-01 21:40:23 -04:00
committed by Carlos Andrés Rocha
parent a9b26cb871
commit df37f11122

View File

@@ -59,6 +59,8 @@ class GeneratedCertificate(models.Model):
distinction = models.BooleanField(default=False)
status = models.CharField(max_length=32, default='unavailable')
name = models.CharField(blank=True, max_length=255)
created_date = models.DateTimeField(auto_now_add=True)
modified_date = models.DateTimeField(auto_now=True)
class Meta:
unique_together = (('user', 'course_id'),)