Permalink
Browse files

use better caseversion resource for the caseselectionresource

  • Loading branch information...
1 parent 9f5c738 commit 9956a247e5ef12978f7bda1753dcd41de4173c55 @camd camd committed Apr 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 moztrap/model/library/api.py
@@ -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

0 comments on commit 9956a24

Please sign in to comment.