Why is my Form not able to add new data to the table?

In my views.py I am using class based views to show a table along with a filter and form(TO ADD new data). My previous pages have been working when I did not define any methods but for this page I need methods to work with . Please let me know why submitting my create form leads to a "'ChamberLogView' object has no attribute 'object_list'" error. If you have any idea on that please let me know. Thank You

class ChamberLogView(SingleTableMixin, CreateView, FilterView):
    template_name = 'html/ChamberLog.html'
    model = ChamberLog
    table_class = ChamberLogTable
    form_class = ChamberLogForm
    filterset_class = ChamberLogFilter
    
    def get_queryset(self, *args, **kwargs):
        return ChamberLog.objects.filter(log_id = self.kwargs.get('pk'))
    
    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        context['ChamberLogInfo'] = ChamberLogInfo.objects.filter(pk = self.kwargs.get('pk'))
        return context
    
    def get_success_url(self):
         #print(self.pk)
        return HttpResponseRedirect(reverse('ChamberLog', kwargs={'pk': self.pk}))
Back to Top