First of all. Student.objects.filter(pk=id) returns QuerySet not
instance of Student.
If you want get current student use
get_object_or_404()(https://docs.djangoproject.com/en/1.4/topics/http/shortcuts/#get-object-or-404)
or Student.objects.get(pk=id).
Teacher and parents can bee retrived via Stud
You can get teacher and parents objects from student instance.
student.teacher and student.teachers.all()
01.05.2012 11:46 пользователь "LJ" написал:
> I have a Student model that stores information about a student,
> including the student's teacher.
> The teacher's information is stored in the E
2 matches
Mail list logo