mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-22 17:56:33 +03:00
15 lines
340 B
Python
15 lines
340 B
Python
import django_filters
|
|
|
|
from .models import File
|
|
|
|
|
|
class FileFilter(django_filters.FilterSet):
|
|
modified = django_filters.DateFromToRangeFilter(
|
|
label="Dates",
|
|
widget=django_filters.widgets.RangeWidget(attrs={"type": "date"}),
|
|
)
|
|
|
|
class Meta:
|
|
model = File
|
|
fields = ["modified", "private", "parent"]
|