refactor: code cleanup

I hate single quotes.
This commit is contained in:
Daniel Quinn 2017-03-25 16:20:59 +00:00
parent 9cee51cd11
commit e9fbeb27ff
2 changed files with 6 additions and 6 deletions

View File

@ -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"
], ],

View File

@ -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 = [