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