Exemplo 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()
Exemplo 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"
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     super(TierForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
Exemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     super(TierForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list()
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     super(QueueForm, self).__init__(*args, **kwargs)
     self.fields["manager"].choices = manager_list()
Exemplo 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"