Hi, class Status(models.Model): someid = models.IntegerField() value = models.IntegerField() status_msg = models.CharField(max_length = 2000)
so my database look like: 20 1234567890 'some mdg' 20 4597434534 'some msg2' 20 345394593 'sdfgsdf' 10 450348534 'ddfgg' so I have to fetch values contain a giving someid between some values. so let say val1 = '1234567890' and val2 = '4414544544' so my final result should be list containing of 2 entry for id = 20 how to implement this. i tried using list = Status.objects.filter(someid = 20, value < val2, value > val1) which is wrong? how to fix this. thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---