GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

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):
except KeyError:
return queryset
submitted_since = django_filters.CharFilter(name='submitted',
submitted_since = django_filters.CharFilter(field_name='submitted',
lookup_expr='gt')
updated_since = django_filters.CharFilter(name='last_updated',
updated_since = django_filters.CharFilter(field_name='last_updated',
lookup_expr='gt')
submitted_before = django_filters.CharFilter(name='submitted',
submitted_before = django_filters.CharFilter(field_name='submitted',
lookup_expr='lte')
updated_before = django_filters.CharFilter(name='last_updated',
lookup_expr='lte')
updated_before = django_filters.CharFilter(field_name='last_updated',
lookup_expr='lte')
submitter = django_filters.CharFilter(method='filter_submitter')
reviewer = django_filters.CharFilter(method='filter_reviewer')
test_state = django_filters.CharFilter(method='filter_test_state')
......@@ -516,13 +516,13 @@ class PatchFilter(django_filters.FilterSet):
except State.DoesNotExist:
return queryset
submitted_since = django_filters.CharFilter(name='date',
submitted_since = django_filters.CharFilter(field_name='date',
lookup_expr='gt')
updated_since = django_filters.CharFilter(name='last_updated',
updated_since = django_filters.CharFilter(field_name='last_updated',
lookup_expr='gt')
submitted_before = django_filters.CharFilter(name='date',
submitted_before = django_filters.CharFilter(field_name='date',
lookup_expr='lte')
updated_before = django_filters.CharFilter(name='last_updated',
updated_before = django_filters.CharFilter(field_name='last_updated',
lookup_expr='lte')
submitter = django_filters.CharFilter(method='filter_submitter')
name = django_filters.CharFilter(lookup_expr='icontains')
......@@ -621,7 +621,7 @@ class EventFilter(django_filters.FilterSet):
names = event_names.split(',')
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')
series = 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