move instructor dashboard into its own lms djangoapp; add new

functionality - grade dump and download as csv, manage staff list,
force reload of course from xml
This commit is contained in:
ichuang
2012-09-02 19:05:34 -04:00
parent 7664f910b1
commit 2efe481237
9 changed files with 474 additions and 107 deletions

View File

@@ -184,6 +184,9 @@ class CourseEnrollment(models.Model):
class Meta:
unique_together = (('user', 'course_id'), )
def __unicode__(self):
return "%s: %s (%s)" % (self.user,self.course_id,self.created)
@receiver(post_save, sender=CourseEnrollment)
def assign_default_role(sender, instance, **kwargs):
if instance.user.is_staff: