With reference to Performing a right join in django , when I try a similar approach (field slightly different):
class Student:
user = ForeignKey(User)
department = IntegerField()
semester = IntegerField()
class Attendance:
student_attending = ForeignKey(Student, related_name='attendee')
subject = ForeignKey(Subject)
When I run this query:
queryset = Student.objects.all().select_related('attendance_set')
I get this response:
django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'attendance_set'.
What could trigger that warning and how do I get the 'join' to work properly?