Skip to content

Commit

Permalink
Remove typing since thats breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Oct 6, 2023
1 parent 77427bf commit 199cecc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tom_dataproducts/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from io import StringIO
import logging
import os
from typing import Any
from urllib.parse import urlencode, urlparse

from django.conf import settings
Expand Down Expand Up @@ -130,11 +129,11 @@ def get_form_class(self):
"""
return self.get_service_class()().get_form()

def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
def get_context_data(self, *args, **kwargs):
"""
Adds the target to the context object.
"""
context = super().get_context_data(**kwargs)
context = super().get_context_data(*args, **kwargs)
context['target'] = self.get_target()
context['query_form'] = self.get_form_class()(initial=self.get_initial())
return context
Expand Down

0 comments on commit 199cecc

Please sign in to comment.