mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2025-07-13 08:42:17 +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"]
|