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)
def __init__(self, *args, **kwargs): super(SendMessageForm, self).__init__(*args, **kwargs) self.fields['organization'].choices = models.getorganizations() self.fields['partner'].choices = models.getpartners()
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)