A way to set initial many-to-many relationship. More or less. Maybe I'll learn a better way later, but this is satisfactory.
More complete tests for the bid function.
Updated view so that it passes the new tests.