Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
use better caseversion resource for the caseselectionresource
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dawson committed Apr 2, 2013
1 parent 9f5c738 commit 9956a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moztrap/model/library/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ class CaseSelectionResource(BaseSelectionResource):

product = fields.ForeignKey(ProductResource, "product")
versions = fields.ToManyField(
CaseVersionResource,
# we only want the latest of the caseversions. this does that filtering
'moztrap.model.library.api.CaseVersionSelectionResource',
# filter for only the latest of the caseversions
lambda bundle: CaseVersion.objects.filter(
case=bundle.obj,
latest=True
Expand Down

0 comments on commit 9956a24

Please sign in to comment.