I am a Django novice, so only a wild guess based on my Python knowledge...
 
> In the Django shell I do
> 
> quests = Question.objects.all()
> quests[579].delete()
> 
> Why does the objects.all() invocation add this id=None crud
> to quests list?
 
Are you sure that you have 580 items in the container?
A Django program is to be executed at the web server side.
Therefore, it is desirable that the program does not crash
very easily.  Search for the information on how the quests
is implemented.  It is likely that it is not a "normal", strict
container that react by raising the exception.  Returning
the special objects for the range outside the real data space
may be a good way to let you test further if the object really
exist.  My guess is that you do not have that many object.
(But I may be completely wrong ;)
 
Petr

-- 
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