response = HttpResponse(attachment.content, content_type='application/pdf')
response['Content-Disposition'] = 'attachment; filename="doc_attachment.pdf"'
return response
listing = form.save(commit=False)
listing.realtor = request.user
listing.save()