QuerySet.exists() and __nonzero__

2009-11-02 Thread Jiri Barton
Hello everyone, I listened to the Django Dose this morning and to my great delight, found QuerySet.exists() has landed in the trunk. I did not however hear anything about yes or no on using __nonzero__ on the interface side. Having read this thread http://groups.google.com/group/django-developer

Drop generic relations in favor of the model inheritance?

2008-02-18 Thread Jiri Barton
The infamous commit #7126 seems to obsolete generic relations -- to me. class ContentType(models.Model): class Meta: abstract = True class TaggedItem(models.Model): content_object = models.ForeignKey(ContentType) The just introduced model inheritance will even let me include fie