mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-24 08:26:43 +02:00
10 lines
203 B
Python
10 lines
203 B
Python
|
from django_filters import FilterSet
|
||
|
|
||
|
from .models import Computer
|
||
|
|
||
|
|
||
|
class ComputerFilter(FilterSet):
|
||
|
class Meta:
|
||
|
model = Computer
|
||
|
fields = {"name": ["contains"], "owner": ["exact"]}
|