Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
haneslinger committed Dec 7, 2023
1 parent 73cf5e5 commit fca2f20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions seed/views/v3/analysis_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from seed.decorators import ajax_request_class, require_organization_id_class
from seed.lib.superperms.orgs.decorators import has_perm_class
from seed.models import AnalysisPropertyView
from seed.models import AnalysisPropertyView, PropertyView
from seed.serializers.analysis_property_views import (
AnalysisPropertyViewSerializer
)
Expand Down Expand Up @@ -68,8 +68,7 @@ def retrieve(self, request, analysis_pk, pk):
'message': "Requested analysis property view doesn't exist in this organization and/or analysis."
}, status=HTTP_409_CONFLICT)

property_view_by_apv_id = AnalysisPropertyView.get_property_views([view])
original_view = property_view_by_apv_id[view.id]
original_view = PropertyView.objects.filter(property=view.property, cycle=view.cycle).first()

return JsonResponse({
'status': 'success',
Expand Down

0 comments on commit fca2f20

Please sign in to comment.