Skip to content

Commit

Permalink
trying to fixing issue #42 on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophia-15 committed Jun 10, 2024
1 parent 547ba54 commit bd7947a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_company/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def post(self, request, pk):
@method_decorator(has_permission_decorator('os&request_ops'), name='dispatch')
class ServiceOrderDetailView(View):
def get(self, request, pk):
previous_url = request.META.get('HTTP_REFERER', '/') if os.environ['TARGET_ENV'] == 'Dev' else request.META.get('HTTP_REFERER', '/').replace("http", "https")
previous_url = request.META.get('HTTP_REFERER', '/') if os.environ['TARGET_ENV'] == 'Dev' else request.META.get('HTTP_REFERER', '/').replace("http:", "https:")
current_url = request.build_absolute_uri()
employees = Users.objects.filter(role='F')
all_orders = OrderRequest.objects.all()
Expand Down

0 comments on commit bd7947a

Please sign in to comment.