|
|
|
@ -183,7 +183,7 @@ def customer_orders(request, *args, **kwargs):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def customer_order_details(request, order_id):
|
|
|
|
|
order = get_object_or_404(Order, id=order_id)
|
|
|
|
|
order = get_object_or_404(Order, order_id=order_id)
|
|
|
|
|
|
|
|
|
|
order_items = OrderItem.objects.filter(order=order).order_by('-id')
|
|
|
|
|
order_item_ids = order_items.values_list('item_id', flat=True)
|
|
|
|
@ -203,6 +203,32 @@ def customer_order_details(request, order_id):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@customer_login_required
|
|
|
|
|
def customer_projects(request, *args, **kwargs):
|
|
|
|
|
projects = Project.objects.filter(customer=request.user.customerprofile)
|
|
|
|
|
|
|
|
|
|
context = {
|
|
|
|
|
'projects': projects,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return render(request, 'listing_pages/customer-projects.html', context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@customer_login_required
|
|
|
|
|
def customer_project_details(request, project_id):
|
|
|
|
|
project = get_object_or_404(Project, project_id=project_id)
|
|
|
|
|
|
|
|
|
|
context = {
|
|
|
|
|
'project': project,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return render(request, 'details_templates/inner-customer-project.html', context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@customer_login_required
|
|
|
|
|
def customer_tickets(request, *args, **kwargs):
|
|
|
|
|
open_tickets = Ticket.objects.filter(Q(status__in=['Open', 'Working On']) & Q(customer=request.user.customerprofile))
|
|
|
|
@ -387,26 +413,5 @@ def dedicated_servers_plans(request, *args, **kwargs):
|
|
|
|
|
return render(request, 'products/dedicated-servers-plans.html', context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@customer_login_required
|
|
|
|
|
def customer_projects(request, *args, **kwargs):
|
|
|
|
|
projects = Project.objects.filter(customer=request.user.customerprofile)
|
|
|
|
|
|
|
|
|
|
context = {
|
|
|
|
|
'projects': projects,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return render(request, 'listing_pages/customer-projects.html', context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@customer_login_required
|
|
|
|
|
def customer_project_details(request, *args, **kwargs):
|
|
|
|
|
|
|
|
|
|
context = {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return render(request, 'details_templates/inner-customer-project.html', context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|