mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
refactor: code cleanup
I hate single quotes.
This commit is contained in:
parent
9cee51cd11
commit
e9fbeb27ff
@ -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 = [
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user