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
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 !
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_fieldto use a field NOT namedtitle, herenameThis feature does not work, I've a django error.
Thanks for your help !