mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-15 12:33:54 +00:00
Should fix #610
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user