Open frague59 opened 10 months ago
Hi,
I'm trying to use an AutocompletePanel to select a model instance from a snippet.
I've seen in the doc I can use the autocomplete_search_field to use a field NOT named title, here name
autocomplete_search_field
title
name
class SideDish(models.Model): name = models.CharField(max_length=255) class Meta: ordering = ('name',) panels = [...] autocomplete_search_field = "name" class Menu(ClusterableModel): ... side_dishes = models.ManyToManyField(SideDish) ... panels = [ ... AutocompletePanel("side_dishes") ...
This feature does not work, I've a django error.
Thanks for your help !
During considering the "SideDish" model before the Menu model, you ensure that the SideDish model is available when creating the many-to-many relationship.
Hi,
I'm trying to use an AutocompletePanel to select a model instance from a snippet.
I've seen in the doc I can use the
autocomplete_search_field
to use a field NOT namedtitle
, herename
This feature does not work, I've a django error.
Thanks for your help !