Skip to content

Commit

Permalink
update api_view
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Oct 11, 2024
1 parent 532cb5a commit b1ef668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tom_observations/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create(self, request, *args, **kwargs):
observation_ids = []
try:
facility = get_service_class(self.request.data['facility'])()
observation_form_class = facility.observation_forms[self.request.data['observation_type']]
observation_form_class = facility.get_form_classes_for_display()[self.request.data['observation_type']]
target = Target.objects.get(pk=self.request.data['target_id'])
observing_parameters = self.request.data['observing_parameters']
except KeyError as ke:
Expand Down

0 comments on commit b1ef668

Please sign in to comment.