Hi.
I've the following model:
class ExamAttributeCalification(models.Model):
exam_result = models.ForeignKey(ExamResult,
edit_inline=models.TABULAR, num_in_admin=1)
exam_attribute =
models.ForeignKey(ExamAttribute,limit_choices_to={"exam__id":1})
calification = models.IntegerField(core=True)
As you can see, in the last line I've a hardcoded "1". This id should be
taken dynamically from exam_result.exam.id model attribute.
How could I accomplish this?
Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---