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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user