def __init__(self, *args, **kwargs): super(SelectIncoming, self).__init__(*args, **kwargs) self.fields['idroute'].choices = models.getroutelist() self.fields['inmessagetype'].choices = models.getinmessagetypes() self.fields['outmessagetype'].choices = models.getoutmessagetypes() self.fields['frompartner'].choices = models.getpartners() self.fields['topartner'].choices = models.getpartners() self.fields['fromchannel'].choices = models.getfromchannels()
def __init__(self, *args, **kwargs): super(SelectConfirm, self).__init__(*args, **kwargs) self.fields['idroute'].choices = models.getroutelist() self.fields['messagetype'].choices = models.getallmessagetypes() self.fields['frompartner'].choices = models.getpartners() self.fields['topartner'].choices = models.getpartners() self.fields['fromchannel'].choices = models.getfromchannels() self.fields['tochannel'].choices = models.gettochannels()