3

‘ã\¤  ã               @   s°   d dl mZ d dlmZ eddƒZeddƒZeddƒZeddƒZG dd	„ d	ejƒZ	G d
d„ dejƒZ
G dd„ dejƒZejjeeƒ ejjee	ƒ ejjee
ƒ ejjeƒ dS )é    )Úadmin)Ú	get_modelÚofferÚConditionalOfferÚ	ConditionÚBenefitÚRangec               @   s   e Zd ZdZdS )ÚConditionAdminÚtypeÚvalueÚrangeN)r
   r   r   )Ú__name__Ú
__module__Ú__qualname__Úlist_display© r   r   ú1/var/www/html/oscar2019/oscar/apps/offer/admin.pyr	      s   r	   c               @   s   e Zd ZdZdS )ÚBenefitAdminÚ__str__r
   r   r   N)r   r
   r   r   )r   r   r   r   r   r   r   r   r      s   r   c            
   @   s0   e Zd ZdZdZdZd	d
difdd
diffZd	S )ÚConditionalOfferAdminÚnameÚ
offer_typeÚstart_datetimeÚend_datetimeÚ	conditionÚbenefitÚtotal_discountÚ
num_ordersNÚfieldsÚdescriptionÚpriorityÚUsage)r   r   r   r   r   r   r   )r   )r   r   )r   r   r   r   r   r   r   r    )r   r   )r   r   r   r   Úlist_filterÚreadonly_fieldsÚ	fieldsetsr   r   r   r   r      s    r   N)Údjango.contribr   Zoscar.core.loadingr   r   r   r   r   Ú
ModelAdminr	   r   r   ÚsiteÚregisterr   r   r   r   Ú<module>   s   



