def lookups(self, request, model_admin):
output = []<EOL>for i in models.Model.objects.values('<STR_LIT>').distinct():<EOL><INDENT>ct = i['<STR_LIT>']<EOL>if ct is not None:<EOL><INDENT>ct = ContentType.objects.get(pk=ct)<EOL>output.append([ct.pk, ct.app_label + '<STR_LIT:.>' + ct.model])<EOL><DEDENT><DEDENT>return output<EOL>
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.