20👍
Use the Django __contains
method.
So for your query:
Sys_team.objects.filter(hostname__contains='.amgr.')
__contains
is Django ORM’s equivalent to SQL’s LIKE
keyword.
Here’s the docs:
Source:stackexchange.com
20👍
Use the Django __contains
method.
So for your query:
Sys_team.objects.filter(hostname__contains='.amgr.')
__contains
is Django ORM’s equivalent to SQL’s LIKE
keyword.
Here’s the docs: