Example #1
0
 def __init__(self, *args, **kwargs):
     super(MDNSearchForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()
     self.fields['status'].choices = [models.DEFAULT_ENTRY] + list(
         models.MDN.STATUS_CHOICES)
     self.fields['mdn_mode'].choices = [models.DEFAULT_ENTRY] + list(
         models.Message.MODE_CHOICES)
Example #2
0
 def __init__(self, *args, **kwargs):
     super(SendMessageForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()
Example #3
0
 def __init__(self, *args, **kwargs):
     super(MDNSearchForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()
     self.fields['status'].choices = [models.DEFAULT_ENTRY] + list(models.MDN.STATUS_CHOICES)
     self.fields['mdn_mode'].choices = [models.DEFAULT_ENTRY] + list(models.Message.MODE_CHOICES)
Example #4
0
 def __init__(self, *args, **kwargs):
     super(SendMessageForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()