I'll recommend you to read
https://docs.djangoproject.com/en/dev/ref/models/querysets/
Cheers!
--
Rafael E. Ferrero
2014-05-07 12:03 GMT-03:00 Anushree Jangid :
> no no you are not missing anything. You got it right and I did that in
> view and it worked. Actually I am new to Django. Thanks a
no no you are not missing anything. You got it right and I did that in view
and it worked. Actually I am new to Django. Thanks a lot.
On Wed, May 7, 2014 at 8:28 PM, Rafael E. Ferrero
wrote:
> You are using Ques for related Subject and QuestionBank... just make a
> method in Ques class who fil
You are using Ques for related Subject and QuestionBank... just make a
method in Ques class who filter the Ques model with some subject parameter
or do it in your view like:
qs = Ques.objects.select_related().filter(subject='some_name')
I'm missing something really big? or i miss understud you
No I start with subject model. There I have created subjects like General
knowledge, English etc. Then I create question banks Like for General
knowledge I have created GK1, GK2 and GK3 . Then when I enter a ques in the
Ques model there I specify that the question is related to which subject
and w
Do you start from Ques model? What are your starting data?
Il giorno mercoledì 7 maggio 2014 15:24:38 UTC+2, Anushree ha scritto:
>
> I have the following models. I want to retrieve list of question banks
> related to a particular subject. Is it possible to do without modifying the
> existing da
Just filtering Ques model (imho)
--
Rafael E. Ferrero
2014-05-07 10:24 GMT-03:00 Anushree :
> I have the following models. I want to retrieve list of question banks
> related to a particular subject. Is it possible to do without modifying the
> existing data models?Thank you
> class Subject(mod
6 matches
Mail list logo