v3 question: how to complete with list instead of queryset?
See original GitHub issueHopefully I’m missing something obvious, but it’s not clear to me how to use a list of choices (rather than a queryset) for autocompletion. For example, in v2, I could write:
class Foo_Autocomplete(al.AutocompleteListBase):
choices = [ 'choice A', 'choice B', 'choice C' ]
...
How can I do the same with v3?
Issue Analytics
- State:
- Created 8 years ago
- Comments:21 (19 by maintainers)
Top Results From Across the Web
How to get list instead of QuerySet class list in Django 2.2.6 ...
I want to have same output as I am getting in py2 without QuerySet & does anyone have idea how should I do...
Read more >QuerySet API reference | Django documentation
Annotates each object in the QuerySet with the provided list of query expressions. An expression may be a simple value, a reference to...
Read more >14. How to use Q objects for complex queries? - Books by Agiliq
Q objects provides you complete control over the where clause of the query. ... from django.db.models import Q >>> queryset = User.objects.filter( ...
Read more >Django QuerySet Filter - W3Schools
Django QuerySet Filter. The filter() method is used to filter your search, and allows you to return only the rows that matches the...
Read more >Filtering for Empty or Null Values in a Django QuerySet - Chartio
Easily the most important method when working with Django models and the underlying QuerySets is the filter() method, which allows you to generate...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

We’ve merged it ! #745
Sure, seems like a fair deal!