o
    QDi                     @   s`   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZ G dd deZd	S )
    )FileResponse)get_object_or_404)method_decorator)View)login_possibly_requiredpermissions_possibly_required)Requestc                   @   s$   e Zd Zeeeedd ZdS )ProfileDownloadViewc                 C   s0   t t|dd}t|j}d|jj d|d< |S )NF)pkprof_file__isnullzattachment; filename=""zContent-Disposition)r   r   r   	prof_filename)selfrequest
request_idsilk_requestresponse r   T/var/www/Datamplify/venv/lib/python3.10/site-packages/silk/views/profile_download.pyget   s   
zProfileDownloadView.getN)__name__
__module____qualname__r   r   r   r   r   r   r   r   r	   
   s    r	   N)django.httpr   django.shortcutsr   django.utils.decoratorsr   django.views.genericr   	silk.authr   r   silk.modelsr   r	   r   r   r   r   <module>   s    