mirror of
https://github.com/ae-utbm/sith3.git
synced 2024-06-01 04:19:43 +00:00
Should fix #610
This commit is contained in:
parent
62054ab7c0
commit
7a9d3012b7
|
@ -206,7 +206,9 @@ class UVListView(CanViewMixin, CanCreateUVFunctionMixin, ListView):
|
|||
except TypeError:
|
||||
return self.model.objects.none()
|
||||
|
||||
return queryset.filter(id__in=([o.object.id for o in qs]))
|
||||
return queryset.filter(
|
||||
id__in=([o.object.id for o in qs if o.object is not None])
|
||||
)
|
||||
|
||||
|
||||
class UVCommentReportCreateView(CanCreateMixin, CreateView):
|
||||
|
|
Loading…
Reference in New Issue
Block a user