35👍
✅
.exclude(notes=u'')
Read more here: django.db.models.query.QuerySet.exclude
3👍
you can also use Q object:
from django.db.models import Q
Item.objects.filter(~Q(notes=''))
- [Django]-How can i use signals in django bulk create
- [Django]-Why Django model signals are not working?
- [Django]-Best way to store user-uploaded files in a webapp
Source:stackexchange.com