
    Hf[                     ^    d Z ddlmZ ddlmZmZ  G d de          Z G d de          Zd	S )
z
    pyexcel.plugins.sources.django
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Representation of django sources

    :copyright: (c) 2015-2022 by Onni Software Ltd.
    :license: New BSD License
    )	DB_DJANGO   )BookDbSourceSheetDbSourcec                   (    e Zd ZdZ	 ddZd Zd ZdS )SheetDjangoSourcez%
    Django model as data source
    Nc                 J    || _         t          j        | t          f||d| d S )N)export_columns
sheet_name)_SheetDjangoSource__modelr   __init__r   )selfmodelr
   r   keywordss        `/var/www/ffwdstore.be/apps/py-env/lib/python3.11/site-packages/pyexcel/plugins/sources/django.pyr   zSheetDjangoSource.__init__   sL     	
 *!		
 	

 	
 	
 	
 	
 	
    c                     | j         gS Nr   r   s    r   get_export_paramsz#SheetDjangoSource.get_export_params   s    ~r   c                     | j         S r   r   r   s    r   get_import_paramsz#SheetDjangoSource.get_import_params"   s
    |r   )NNN)__name__
__module____qualname____doc__r   r   r    r   r   r   r      sU         
 ;?

 

 

 

      r   r   c                       e Zd ZdZd Zd ZdS )BookDjangoSourcez.
    multiple Django table as data source
    c                 D    || _         t          j        | t          fi | d S r   )_BookDjangoSource__modelsr   r   r   )r   modelsr   s      r   r   zBookDjangoSource.__init__+   s*    dI:::::::r   c                     | j         S r   )r"   r   s    r   
get_paramszBookDjangoSource.get_params/   s
    }r   N)r   r   r   r   r   r%   r   r   r   r    r    &   s<         ; ; ;    r   r    N)r   pyexcel_io.constantsr   
db_sourcesr   r   r   r    r   r   r   <module>r(      s     + * * * * * 3 3 3 3 3 3 3 3       0
 
 
 
 
| 
 
 
 
 
r   