Many days ago, I deleted some object with object.delete() method.
Today I found that my model Product is inconsistent now. Here is the
strange result.

>>> allproduct=Product.objects.all()
>>> allproduct
[<Mugcup: mugcup-4: aa [/design/p/4/]>, <Mugcup: mugcup-5: aa [/design/
p/5/]>]
#Here shows no product with id=7

>>> for ap in allproduct:
...   print ap.id
...
4
5
#print allproduct's id, no id =7

But in the following:
>>> funny_p7=Product.objects.get(id=7)
>>> funny_p7
<Product: product-7: aa [/design/p/7/]>
>>>

What is up??? So strange. Is it because the django forget to update
when I delete objects?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to