Allow filtering aliases on destination

This commit is contained in:
nikolark committed 2015-03-28 18:10:45 +01:00
1 parent c5654d7993
commit 88eeabe746
1 file changed
+1
+1
View File
@@ -7,6 +7,7 @@ from rest_framework.filters import BaseFilterBackend
class AliasRegexFilter(django_filters.FilterSet):
# Ref: https://docs.djangoproject.com/en/1.7/ref/models/querysets/#iregex
source_regex = django_filters.CharFilter(name="source", lookup_type='iregex')
destination_regex = django_filters.CharFilter(name="destination", lookup_type='iregex')
class Meta:
model = Alias