|
|
|
@ -10,7 +10,7 @@ from finance.models import Bill |
|
|
|
from courses.templates import comment_fabric |
|
|
|
from courses.templates import comment_fabric |
|
|
|
from library.models import Article |
|
|
|
from library.models import Article |
|
|
|
from management.reports import get_now_success_hw, get_second_success_hw |
|
|
|
from management.reports import get_now_success_hw, get_second_success_hw |
|
|
|
|
|
|
|
from django.http import HttpResponse |
|
|
|
|
|
|
|
|
|
|
|
def sortByTimeStamp(inputStr): |
|
|
|
def sortByTimeStamp(inputStr): |
|
|
|
return inputStr['sort'] |
|
|
|
return inputStr['sort'] |
|
|
|
@ -154,3 +154,9 @@ def new_reports(request): |
|
|
|
@response_decor(template='contacts.html', without_auth=True) |
|
|
|
@response_decor(template='contacts.html', without_auth=True) |
|
|
|
def contacts(request): |
|
|
|
def contacts(request): |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def show_oferta(request): |
|
|
|
|
|
|
|
with open('oferta.pdf', 'rb') as pdf: |
|
|
|
|
|
|
|
response = HttpResponse(pdf.read(), content_type='application/pdf') |
|
|
|
|
|
|
|
response['Content-Disposition'] = 'filename=oferta.pdf' |
|
|
|
|
|
|
|
return response |