Specify clin sorting in TO <> CLIN relationship

This also removes the sorted_clins property on the task_order model
This commit is contained in:
graham-dds
2020-02-19 16:41:51 -05:00
parent 612e254104
commit d46ed2b5b4
4 changed files with 9 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ def test_clin_sorting():
CLINFactory.create(number="2001"),
]
)
assert [clin.number for clin in task_order.sorted_clins] == [
assert [clin.number for clin in task_order.clins] == [
"0001",
"1001",
"2001",