mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-07 00:20:53 +02:00
dcc3e39914
Make the file tree a bit flatter in order to make the project less confusing
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"]}
|