From df37f111229cfd8e36e3e61d36ec2a92542abd74 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Thu, 1 Nov 2012 21:40:23 -0400 Subject: [PATCH] Adding modified and created fields to GeneratedCertificates --- lms/djangoapps/certificates/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/certificates/models.py b/lms/djangoapps/certificates/models.py index ac7f8c8028..8f62ee85c2 100644 --- a/lms/djangoapps/certificates/models.py +++ b/lms/djangoapps/certificates/models.py @@ -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'),)