예제 #1
0
 def lookups(self, request, model_admin):
     return CustomerState.choices()
예제 #2
0
 def queryset(self, request, queryset):
     try:
         queryset = queryset.filter(customer__recognized=CustomerState(int(self.value())))
     finally:
         return queryset
예제 #3
0
 def lookups(self, request, model_admin):
     return CustomerState.choices()