django-positions - multi-table model inheritance using parent_link
<p>Using <a href="https://github.com/jpwatts/django-positions">https://github.com/jpwatts/django-positions</a>,</p>

<p>I have a few models that inherit from a parent one, for example:</p>

<pre><code>class ContentItem(models.Model):

    class Meta:
        ordering = ['position']

    content_group = models.ForeignKey(ContentGroup)
    position      = PositionField(collection='content_group', parent_link='contentitem_ptr')

class Text(ContentItem):

    title = models.CharField(max_length=500, unique=False, null=True, blank=True)
</code></pre>

<p>I understand I need to <a href="https://github.com/jpwatts/django-positions/blob/master/positions/examples/school/models.py">use the parent_link argument</a> (<a href="https://github.com/jpwatts/django-positions">here's the documentation</a>). But I get this error when I use it:</p>

<pre><code>websites.Text: (models.E015) 'ordering' refers to the non-existent field 'position'.
</code></pre>

<p>When using the <code>parent_link</code> argument it's as if the <code>position</code> field has been deleted out of the model completely. I've tried various field names such as <code>contentitem_ptr_id</code> (the actual name of the linking field), but no luck. Anything identifiable I'm doing wrong here?</p>

<p><code>class Meta:</code> should come after your field definitions.</p>

python django