Trouble handling generic relationship in django
问题 I want to model a situation and I´m having real trouble handling it. The domain is like this: There are Posts, and every post has to be associated one to one with a MediaContent. MediaContent can be a picture or a video (for now, maybe music later). So, what I have is: mediacontents/models.py 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: