3

‘ã\  ã               @   s@   d dl mZ d dlmZ G dd„ dejƒZG dd„ dejƒZdS )é    )Úforms)Ú	get_modelc               @   s   e Zd ZG dd„ dƒZdS )ÚWeightBasedFormc               @   s"   e Zd ZeddƒZddddgZdS )zWeightBasedForm.MetaÚshippingÚWeightBasedÚnameÚdescriptionÚdefault_weightÚ	countriesN)Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚfields© r   r   ú>/var/www/html/oscar2019/oscar/apps/dashboard/shipping/forms.pyÚMeta   s   
r   N)r   r   r   r   r   r   r   r   r      s   r   c                   s*   e Zd Z‡ fdd„ZG dd„ dƒZ‡  ZS )ÚWeightBandFormc                s   t ƒ j||Ž || j_d S )N)ÚsuperÚ__init__ÚinstanceÚmethod)Úselfr   ÚargsÚkwargs)Ú	__class__r   r   r      s    zWeightBandForm.__init__c               @   s   e Zd ZeddƒZdZdS )zWeightBandForm.Metar   Ú
WeightBandÚupper_limitÚchargeN)r   r   )r   r   r   r   r   r   r   r   r   r   r      s   
r   )r   r   r   r   r   Ú__classcell__r   r   )r   r   r      s   r   N)Údjangor   Úoscar.core.loadingr   Ú	ModelFormr   r   r   r   r   r   Ú<module>   s   