@cpennington Do you mean add unique_together = (user, course_id) constraint which will result in creating joint index in MySQL? I'm not sure, still, if this index will be created in sqlite.