Exemple #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_of_calendar_user()
 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_of_calendar_user()
Exemple #3
0
 def __init__(self, *args, **kwargs):
     super(CalendarUserProfileForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list_of_calendar_user()
Exemple #4
0
 def __init__(self, *args, **kwargs):
     super(CalendarUserProfileForm, self).__init__(*args, **kwargs)
     self.fields['manager'].choices = manager_list_of_calendar_user()