armstrong/armstrong.core.arm_sections — pull request #11 by joncotton (2012-01-12 00:07:21+00:00)
Title: Multiple Relation Field lookups

Increase the flexibility of the `find_related` backend by allowing it to search on multiple fields.

The `settings.ARMSTRONG_SECTION_ITEM_MODEL` may have more than one relation to Section. This would be true in the case of ManyToMany secondary sections with a ForeignKey primary_section. Using Q filter conditions means we can pick up any Model instances related to Section on any field.

Note: this doesn't care what relation fields are named and doesn't care how many there are.

This PR uses only one commit. I decided that SectionSlugManager should only utilize a single relation field.