Is there a way to define the order of objects related through a ManyToManyField?
Example:
ArticleContainer1 contains in this order :
article
On Django 2.0, the accepted answer of Francis Yaconiello works well with the exception of a warning caused by the max_length argument for the order field of class DepartmentPeople.
Django ignores max_length for integer fields, and will warn you in Django 1.8+.
I would add a unique_together entry in the Meta subclass
class Meta:
#...
unique_together = ['person', 'department', 'order']
to prevent data entry errors.