Answer the question
In order to leave comments, you need to log in
How to implement django filter with manually specified spacing?
I solve the problem with the library https://django-filter.readthedocs.io/en/master/ind...
1. How to exclude the display of fields in the form?
exclude - doesn't help
class TableFilter(django_filters.FilterSet):
class Meta:
model = GPSData
exclude = ['time']
fields = {
'height': ['lt', 'gt'],
'speed': ['lt', 'gt'],
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question