Skip to content
Snippets Groups Projects
Commit e3e0d324 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

comments added

parent ec3f79c1
No related branches found
No related tags found
Loading
...@@ -672,6 +672,8 @@ def appointment_edit_datetime(request, id): ...@@ -672,6 +672,8 @@ def appointment_edit_datetime(request, id):
form = AppointmentEditForm(instance=the_appointment) form = AppointmentEditForm(instance=the_appointment)
return wrap_response(request, 'appointments/edit.html', {'form': form}) return wrap_response(request, 'appointments/edit.html', {'form': form})
#because we don't wrap_response we must force login required
@login_required
def export_to_csv2(request, type="subjects"): def export_to_csv2(request, type="subjects"):
#Create the HttpResponse object with the appropriate CSV header. #Create the HttpResponse object with the appropriate CSV header.
response = HttpResponse(content_type='text/csv') response = HttpResponse(content_type='text/csv')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment