Hi there,
I´m having trouble getting following to work:
My autocomplete is registered with search fields for ResourceBaseMode: title, abstract and purpose.
The results from ResourceBaseModel are returned here:
def __unicode__(self):
return self.title
What changes are needed to show choices in search input with all 3 search fields but only when the given string is found in a certain field.
Here an example to make it more clear:
1. Database table:
id | title | abstract | purpose
1 | dog 1 | her dog | love other dogs
2 | dog 2 |your friend | is a good dog
3 | cat 1 | my cat | hates dogs
4 | cat 2 | your cat | always sleeps
2. User input: dog
3. Expected choices in autocomplete:
dog 1, her dog, love other dogs
dog 2, is a good dog
hates dogs
I have a good understanding for mvc but a novice with Django.
Thank you!