Here is a snippet of how my models are setup:
class Profile(models.Model): name = models.CharField(max_length=32) accout = models.ManyToManyFie
The easiest solution for this particular problem seems to be
for acct in self.profile.accounts.order_by('profileaccounts'): pass