Esempio n. 1
0
 def lookups(self, request, model_admin):
     """
     Returns a list of tuples. The first element in each
     tuple is the coded value for the option that will
     appear in the URL query. The second element is the
     human-readable name for the option that will appear
     in the right sidebar.
     """
     return manager_list()
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(AgentProfileForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
     for i in self.fields.keyOrder:
         self.fields[i].widget.attrs['class'] = "form-control"
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     super(TierForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
Esempio n. 4
0
 def __init__(self, *args, **kwargs):
     super(TierForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
Esempio n. 5
0
 def __init__(self, *args, **kwargs):
     super(QueueForm, self).__init__(*args, **kwargs)
     self.fields["manager"].choices = manager_list()
Esempio n. 6
0
 def __init__(self, *args, **kwargs):
     super(AgentProfileForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
     for i in self.fields.keyOrder:
         self.fields[i].widget.attrs['class'] = "form-control"