In djcli documentation they explain you can filter models like this with the list command:
$ djcli ls settings.AUTH_USER_MODEL is_staff=1 username email is_superuser
Auto-detected DJANGO_SETTINGS_MODULE=testproj2.settings
Auto-detected model=auth.User
----- ------------ ---------
email is_superuser username
True newb
False 13337noob
----- ------------ ---------
But it does not show how to use the OR filter, ie. to list users that are either with is_staff=True, either is_superuser=True, is it possible ?
Otherwise, how do you recommend to propose a syntax for OR'ing filters so I can contribute to djcli ?
from How to use OR filters in djcli?
No comments:
Post a Comment