Answer the question
In order to leave comments, you need to log in
How to take all values except NULL from django model?
Above is the table from which you need to take the data.
Tried to use
and
none of it worked, returns an empty list
akin.objects.filter(character=not 'NULL')
akin.objects.filter(character=not None)
Answer the question
In order to leave comments, you need to log in
Have you tried reading the documentation ?
akin.objects.filter(character__isnull=False)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question