mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-06 18:15:17 +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:
|
except TypeError:
|
||||||
return self.model.objects.none()
|
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):
|
class UVCommentReportCreateView(CanCreateMixin, CreateView):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user