I'm fooling around with comparing instances of different models,  
trying to make a unified stream of instances that can be sorted by  
date according to a certain datetime attribute on each model. I  
thought I'd define a __cmp__ method on each model in question, that  
would provide the appropriate attribute, rather than writing a sort  
key function. I started off just comparing instances of different  
models, to see what would happen, and found that some instances  
evaluate to 'greater than' other instances, but I don't know what the  
criteria is. It's not foreign key, and looking at the source I don't  
see anything defined for Model except for __eq__ and __ne__. Can  
someone enlighten?

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to