question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3 question: how to complete with list instead of queryset?

See original GitHub issue

Hopefully 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:closed
  • Created 8 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
jpiccommented, Sep 24, 2016

We’ve merged it ! #745

1reaction
dmosbergercommented, Mar 11, 2016

Sure, seems like a fair deal!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found