Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Switch out field_name= for name=

Daniel Quinnf5e725c69114
diff --git a/src/documents/filters.py b/src/documents/filters.py
index 902cca2c3..68861d967 100644
--- a/src/documents/filters.py
+++ b/src/documents/filters.py
@@ -42,13 +42,16 @@ class DocumentFilterSet(FilterSet):
)
}
- correspondent__name = CharFilter(name="correspondent__name", **CHAR_KWARGS)
- correspondent__slug = CharFilter(name="correspondent__slug", **CHAR_KWARGS)
- tags__name = CharFilter(name="tags__name", **CHAR_KWARGS)
- tags__slug = CharFilter(name="tags__slug", **CHAR_KWARGS)
- tags__empty = BooleanFilter(name='tags',
- lookup_expr='isnull',
- distinct=True)
+ correspondent__name = CharFilter(
+ field_name="correspondent__name", **CHAR_KWARGS)
+ correspondent__slug = CharFilter(
+ field_name="correspondent__slug", **CHAR_KWARGS)
+ tags__name = CharFilter(
+ field_name="tags__name", **CHAR_KWARGS)
+ tags__slug = CharFilter(
+ field_name="tags__slug", **CHAR_KWARGS)
+ tags__empty = BooleanFilter(
+ field_name="tags", lookup_expr="isnull", distinct=True)
class Meta:
model = Document