Skip to content

Commit

Permalink
removed the todolist_template_feature group (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbharadwaj committed Jul 24, 2018
1 parent da1e104 commit afa3e79
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions orchestra/todos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,3 @@ class TodoListTemplateList(generics.ListCreateAPIView):

serializer_class = TodoListTemplateSerializer
queryset = TodoListTemplate.objects.all()

def get_queryset(self):
# Only enable todolist template feature functionality for users
# in the `todolist_template_feature` group to facilitate A/B testing.
if self.request.user.groups.filter(
name='todolist_template_feature').exists():
queryset = TodoListTemplate.objects.all()
queryset = queryset.order_by('-created_at')
else:
queryset = TodoListTemplate.objects.none()
return queryset

0 comments on commit afa3e79

Please sign in to comment.