Great! Thank you both for taking the time to reply and giving acurate
advice. I appreciate it.
--~--~-~--~~~---~--~~
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@
brad wrote:
> When I am in "manage.py shell", I import the model Data and I
> execute Data.objects.all(), what is returned to me are all of the
> prices in the database table.
Actually, that returns a list of Data instances. You've told Django
(via the __str__ method in class Data) that it shou
Hi, brad. I'm sort of new myself, but I'm fairly sure you want to use
Data.objects.filter(quantity=25). So, in the shell, you might try to
iterate over these like this:
query = Data.objects.filter(quantity=25)
for thinger in query:
print "price: %s\ncompany: %s\nurl: %s\n" % (query.price,
Below is part of my models.py file and I am having trouble getting a
queryset that includes all of the information that I need it to
include. When I am in "manage.py shell", I import the model Data and I
execute Data.objects.all(), what is returned to me are all of the
prices in the database tabl
4 matches
Mail list logo