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(models.Model):
name = models.CharField(max_length = 255)
desc = models.TextField(blank=True)
def __unicod
with their question
banks have been stored in Ques model.
On Wed, May 7, 2014 at 7:38 PM, Davide Scatto wrote:
> 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
ss 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 your question?
>
>
>
> 2014-05-07 11:19 G
3 matches
Mail list logo