Is this how django does STI?
In [this SO question][1] I see the following:

    class MediaContent(models.Model):
        uploader = models.ForeignKey(User)
        title = models.CharField(max_length=100)
        created = models.DateTimeField(auto_now_add=True)
    
        def draw_item(self):
            pass
    
        class Meta:
            abstract = True
    
    class Picture(MediaContent):
        picture = models.ImageField(upload_to='pictures')
    
    class Video(MediaContent):
        identifier = models.CharField(max_length=30) #youtube id

I have done some STI in Rails before, but never in django. Is this how it's done in django? Will it only create one table having all the fields in all the models? Will it add a type column?

  [1]: http://stackoverflow.com/questions/5890559/trouble-handling-generic-relationship-in-django
Is this how django does STI?
===

In [this SO question][1] I see the following:

    class MediaContent(models.Model):
        uploader = models.ForeignKey(User)
        title = models.CharField(max_length=100)
        created = models.DateTimeField(auto_now_add=True)
    
        def draw_item(self):
            pass
    
        class Meta:
            abstract = True
    
    class Picture(MediaContent):
        picture = models.ImageField(upload_to='pictures')
    
    class Video(MediaContent):
        identifier = models.CharField(max_length=30) #youtube id

I have done some STI in Rails before, but never in django. Is this how it's done in django? Will it only create one table having all the fields in all the models? Will it add a type column?

  [1]: http://stackoverflow.com/questions/5890559/trouble-handling-generic-relationship-in-django