Skip to content
Snippets Groups Projects
Commit c5964fb6 authored by Jean-Philippe Laverdure's avatar Jean-Philippe Laverdure
Browse files

get instead of filter

parent 8a500351
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,7 @@ class DataSetFileListJSONView(StaffViewMixin, JSONListView):
model = DataSet
def get_queryset(self):
profile = Profile.objects.filter(accountname=self.kwargs.get('sim'))
profile = Profile.objects.get(accountname=self.kwargs.get('sim'))
return super().get_queryset().filter(
Q(created_by=profile)
| Q(share_profiles=profile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment