through

Django ManyToManyField ordering using through?

Here is a snippet of how my models are setup: class Profile(models.Model): name = models.CharField(max_length=32) accout = models.ManyToManyField( 'project.Account', through='project.ProfileAccount' ) def __unicode__(self) return self.name class Accounts(models.Model): name = models.Ch...

How can I do a find in Rails with conditions set on the join table of a :through association?

I have the following models: class User < ActiveRecord::Base has_many :permissions has_many :tasks, :through => :permissions class Task < ActiveRecord::Base has_many :permissions has_many :users, :through => :permissions class Permission < ActiveRecord::Base belongs_to :task belongs_to :user I want to be able to display ...