mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Switch out field_name= for name=
This appears to be a django-filter version change thing.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn