Commit 9a455a6e authored by Arkadiusz Hiler's avatar Arkadiusz Hiler
Browse files

Use filed_name instead of name for django_filters



Changes with never version.
Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent d588a65d
...@@ -165,14 +165,14 @@ class SeriesFilter(django_filters.FilterSet): ...@@ -165,14 +165,14 @@ class SeriesFilter(django_filters.FilterSet):
except KeyError: except KeyError:
return queryset return queryset
submitted_since = django_filters.CharFilter(name='submitted', submitted_since = django_filters.CharFilter(field_name='submitted',
lookup_expr='gt') lookup_expr='gt')
updated_since = django_filters.CharFilter(name='last_updated', updated_since = django_filters.CharFilter(field_name='last_updated',
lookup_expr='gt') lookup_expr='gt')
submitted_before = django_filters.CharFilter(name='submitted', submitted_before = django_filters.CharFilter(field_name='submitted',
lookup_expr='lte') lookup_expr='lte')
updated_before = django_filters.CharFilter(name='last_updated', updated_before = django_filters.CharFilter(field_name='last_updated',
lookup_expr='lte') lookup_expr='lte')
submitter = django_filters.CharFilter(method='filter_submitter') submitter = django_filters.CharFilter(method='filter_submitter')
reviewer = django_filters.CharFilter(method='filter_reviewer') reviewer = django_filters.CharFilter(method='filter_reviewer')
test_state = django_filters.CharFilter(method='filter_test_state') test_state = django_filters.CharFilter(method='filter_test_state')
...@@ -516,13 +516,13 @@ class PatchFilter(django_filters.FilterSet): ...@@ -516,13 +516,13 @@ class PatchFilter(django_filters.FilterSet):
except State.DoesNotExist: except State.DoesNotExist:
return queryset return queryset
submitted_since = django_filters.CharFilter(name='date', submitted_since = django_filters.CharFilter(field_name='date',
lookup_expr='gt') lookup_expr='gt')
updated_since = django_filters.CharFilter(name='last_updated', updated_since = django_filters.CharFilter(field_name='last_updated',
lookup_expr='gt') lookup_expr='gt')
submitted_before = django_filters.CharFilter(name='date', submitted_before = django_filters.CharFilter(field_name='date',
lookup_expr='lte') lookup_expr='lte')
updated_before = django_filters.CharFilter(name='last_updated', updated_before = django_filters.CharFilter(field_name='last_updated',
lookup_expr='lte') lookup_expr='lte')
submitter = django_filters.CharFilter(method='filter_submitter') submitter = django_filters.CharFilter(method='filter_submitter')
name = django_filters.CharFilter(lookup_expr='icontains') name = django_filters.CharFilter(lookup_expr='icontains')
...@@ -621,7 +621,7 @@ class EventFilter(django_filters.FilterSet): ...@@ -621,7 +621,7 @@ class EventFilter(django_filters.FilterSet):
names = event_names.split(',') names = event_names.split(',')
return queryset.filter(event__name__in=names) return queryset.filter(event__name__in=names)
since = django_filters.CharFilter(name='event_time', lookup_expr='gt') since = django_filters.CharFilter(field_name='event_time', lookup_expr='gt')
name = django_filters.CharFilter(method='filter_name') name = django_filters.CharFilter(method='filter_name')
series = django_filters.NumberFilter() series = django_filters.NumberFilter()
patch = django_filters.NumberFilter() patch = django_filters.NumberFilter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment