git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@159
6d9bc8c9-1ec2-4278-b937-
99fde70a366f
return course_sections.sections_tuple_delimiter.join(section).encode('base64').strip()
class Member(m.Model):
+ class Meta:
+ unique_together = (('course', 'user'))
+
course = m.ForeignKey(Course)
user = m.ForeignKey(User)
role = m.CharField(
[(u'INSTR',_(u'Instructor')), (u'PROXY', _(u'Proxy instructor'))])
.render('instructor_role_%d' % mbr.id, mbr.role))"/>
<tr py:for="mbr in instructors">
- <td>${mbr.user.get_full_name() or mbr.user}</td>
+ <td>${mbr.user.get_full_name() or ''} <code>(${mbr.user.username})</code></td>
<td>${select_role(mbr)}</td>
<td><input type="checkbox" name="instructor_remove_${mbr.id}"/></td>
</tr>