mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	refactor: code cleanup
I hate single quotes.
This commit is contained in:
		| @@ -8,7 +8,7 @@ class CorrespondentFilterSet(FilterSet): | |||||||
|     class Meta(object): |     class Meta(object): | ||||||
|         model = Correspondent |         model = Correspondent | ||||||
|         fields = { |         fields = { | ||||||
|             'name': [ |             "name": [ | ||||||
|                 "startswith", "endswith", "contains", |                 "startswith", "endswith", "contains", | ||||||
|                 "istartswith", "iendswith", "icontains" |                 "istartswith", "iendswith", "icontains" | ||||||
|             ], |             ], | ||||||
| @@ -21,7 +21,7 @@ class TagFilterSet(FilterSet): | |||||||
|     class Meta(object): |     class Meta(object): | ||||||
|         model = Tag |         model = Tag | ||||||
|         fields = { |         fields = { | ||||||
|             'name': [ |             "name": [ | ||||||
|                 "startswith", "endswith", "contains", |                 "startswith", "endswith", "contains", | ||||||
|                 "istartswith", "iendswith", "icontains" |                 "istartswith", "iendswith", "icontains" | ||||||
|             ], |             ], | ||||||
|   | |||||||
| @@ -26,10 +26,10 @@ from documents.views import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| router = DefaultRouter() | router = DefaultRouter() | ||||||
| router.register(r'correspondents', CorrespondentViewSet) | router.register(r"correspondents", CorrespondentViewSet) | ||||||
| router.register(r'tags', TagViewSet) | router.register(r"documents", DocumentViewSet) | ||||||
| router.register(r'documents', DocumentViewSet) | router.register(r"logs", LogViewSet) | ||||||
| router.register(r'logs', LogViewSet) | router.register(r"tags", TagViewSet) | ||||||
|  |  | ||||||
| urlpatterns = [ | urlpatterns = [ | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn