예제 #1
0
파일: forms.py 프로젝트: bobphill/pyas2
 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)
예제 #2
0
파일: forms.py 프로젝트: kurohai/pyas2
 def __init__(self, *args, **kwargs):
     super(SendMessageForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()
예제 #3
0
파일: forms.py 프로젝트: kurohai/pyas2
 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)
예제 #4
0
파일: forms.py 프로젝트: bobphill/pyas2
 def __init__(self, *args, **kwargs):
     super(SendMessageForm, self).__init__(*args, **kwargs)
     self.fields['organization'].choices = models.getorganizations()
     self.fields['partner'].choices = models.getpartners()