Hello.....
my project deals with mnemonic-data pairs.
so I have model like this:
class DataValue(models.Model):
file=models.ForeignKey(File)
row=models.IntegerField()
mnem=models.IntegerField()
value=models.CharField(max_length=2000)
class Curve(models.Model):
file=models.ForeignKey(File)
mnem=models.CharField(max_length=100)
mnem field of DataValue contains the curve id, but it not set as the
foreign key.
so for each set of mnemonic data pairs for same file id i am trying to
maintain row numbers.
where i am failing is that ......
i want to get a particular two mnemonic pairs.
my query is like this:
dataobj=DataValue.objects.filter(file=file.id).filter(mnem=1,mnem=2)
where 1 and 2 are the curve ids for a particular condition.
but i am getting only records corresponding to mnem=2.
any valuable suggestions ? please help me......
i think it might be some minor misunderstatnding.
thanks in advanse
Lima
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---