Hi, I've read several descriptions (on the website and the mailinglist) on how inheritance once worked, works now, should work, or does not work, and I'm confused...
I have an abstract base class called File: class File(models.Model): user = models.ForeignKey(User) file = models.FileField(upload_to="uploads/") class Meta: abstract = True I want to have several classes that inherit from it, for example: class BitmapImageFile(File): width = models.IntegerField() height = models.IntegerField() class PdfFile(File): num_pages = models.IntegerField() Now, I'd like to access all the file objects. Ideally, I would write File.objects.all() but File does not have an objects property. Is there a way to do this that will not kill my database performance? Maybe an abstract base is the wrong idea... Any help is appreciated! -Stephan Walter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---