Exemplo n.º 1
0
 def __init__(self, existing_suppliers, *args, **kwargs):
     super(SelectSuppliersForm, self).__init__(*args, **kwargs)
     self.fields['suppliers'].choices = remaining_suppliers(existing_suppliers)
Exemplo n.º 2
0
def remaining_std_suppliers(l):
    try:
        return remaining_suppliers(l.available_suppliers())
    except:
        return None