コード例 #1
0
ファイル: forms.py プロジェクト: alexproca/bots
 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()
コード例 #2
0
 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()
コード例 #3
0
ファイル: forms.py プロジェクト: alexproca/bots
 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()
コード例 #4
0
 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()