add callable excecution and test for default value, update readme with exclude, bump version

This commit is contained in:
collerek
2020-09-17 18:10:10 +02:00
parent 1a4be03131
commit d0161a81af
5 changed files with 11 additions and 2 deletions

View File

@ -82,6 +82,9 @@ notes = await Note.objects.filter(completed=True).all()
# exact, iexact, contains, icontains, lt, lte, gt, gte, in
notes = await Note.objects.filter(text__icontains="mum").all()
# exclude - from ormar >= 0.3.1
notes = await Note.objects.exclude(text__icontains="mum").all()
# .get()
note = await Note.objects.get(id=1)