Is it possible to filter an inline autocomplete field by a dynamic value entered by a user?
For example, I have a an admin form where staff enters games information including home and visiting team, game date and time, score, etc. They also enter individual player names and stats. I would like to add a filter to show only the players on either the home or visiting team. I am using the InlineAutocompleteAdmin module (http://jannisleidel.com/ 2008/11/autocomplete-form-widget-foreignkey-model-fields/), which provides autocomplete hints for input fields. Here is the current inline autocomplete code: class IndividualFootballGameInline(InlineAutocompleteAdmin): model = IndividualFootballGame extra = 1 related_search_fields = { 'player': ('player__first_name', 'player__last_name', '#team__sport__sport=Football', '#team__season__season_start_date__year=' + str(get_current_season_start_year('football'))), } If this can be accomplished, can you help me understand how? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.