Skip to content

Commit

Permalink
Allowing filtering of active versions. Derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Jan 8, 2012
1 parent 8c5f636 commit 7e22274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readthedocs/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tastypie import fields
from tastypie.authentication import BasicAuthentication
from tastypie.authorization import Authorization
from tastypie.constants import ALL_WITH_RELATIONS
from tastypie.constants import ALL_WITH_RELATIONS, ALL
from tastypie.resources import ModelResource
from tastypie.exceptions import NotFound
from tastypie.http import HttpCreated
Expand Down Expand Up @@ -171,6 +171,7 @@ class Meta:
filtering = {
"project": ALL_WITH_RELATIONS,
"slug": ALL_WITH_RELATIONS,
"active": ALL,
}

def version_compare(self, request, **kwargs):
Expand Down

0 comments on commit 7e22274

Please sign in to comment.