title: Django: Generic one-to-many relationship with Contenttypes
body: <p>I'm trying to make the following fit in the Django ORM. Having a <code>Publish</code> model which manages the publication of different kind of types of content (other models). This so I can easily do <code>Publish.objects.all()</code> and order them by date. I made a generic model as the following:</p>
  
  <pre><code>class Publish(models.Model):
      """ Intermediary model for displaying and managing different types of content """
      status = models.IntegerField(_('status'), choices=STATUS_CHOICES, default=1)
      publish = models.DateTimeField(_('publish'), default=datetime.datetime.now)
  
      content_type = models.ForeignKey(ContentType)
      object_id = models.PositiveIntegerField()
      content_object = generic.GenericForeignKey('content_type', 'object_id')
  </code></pre>
  
  <p>The problem is that I want to attach this to different models. This has to be a <code>OneToMany</code> relationship. Because an article can only have one publication date. A generic relation is, as far as I know, a <code>ManyToMany</code> relationship.</p>
  
  <p>I have tried restricting the <code>max_num</code> and <code>extra</code> in <code>GenericTabularInline</code> in admin.py, but this isn't a great working solution. Does anyone know how to attach the Publish model to several different models, making it a required, one-to-many relationship? Many being the Publish model, one being for ex. an Article.</p>