refactor: code cleanup

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

View File

@ -8,7 +8,7 @@ class CorrespondentFilterSet(FilterSet):
class Meta(object):
model = Correspondent
fields = {
'name': [
"name": [
"startswith", "endswith", "contains",
"istartswith", "iendswith", "icontains"
],
@ -21,7 +21,7 @@ class TagFilterSet(FilterSet):
class Meta(object):
model = Tag
fields = {
'name': [
"name": [
"startswith", "endswith", "contains",
"istartswith", "iendswith", "icontains"
],

View File

@ -26,10 +26,10 @@ from documents.views import (
)
router = DefaultRouter()
router.register(r'correspondents', CorrespondentViewSet)
router.register(r'tags', TagViewSet)
router.register(r'documents', DocumentViewSet)
router.register(r'logs', LogViewSet)
router.register(r"correspondents", CorrespondentViewSet)
router.register(r"documents", DocumentViewSet)
router.register(r"logs", LogViewSet)
router.register(r"tags", TagViewSet)
urlpatterns = [