Ilya Braude wrote:
Hello!

I've run into a problem when calling .get on a related field manager with id = None. As far as I understand, doing an objects.get(id=None) should throw a DoesNotExist exception.

However, it seems that there is some caching going on, as demonstrated in this trivial example:
http://dpaste.com/168572/

The first call to
 blog.entry_set.get(id=None)
returns entry2, while the second call correctly throws the exception, which is incorrect!

Oops. I meant that returning entry2 is incorrect; throwing the exception is the (correct) expected behavior.


I've been able to reproduce this with trunk as of today.

Am I doing something wrong, or is there a bug?

Thanks,
Ilya


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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