Skip to content

Commit

Permalink
pepify
Browse files Browse the repository at this point in the history
  • Loading branch information
poxip committed Dec 12, 2018
1 parent 2206d8f commit 5b87499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fdadb/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def has_add_permission(self, request):
def has_change_permission(self, request, obj=None):
if obj:
return False

# allow listing medications in admin
return True

Expand Down
2 changes: 1 addition & 1 deletion fdadb/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from django.conf import settings
from rest_framework.generics import ListAPIView
from rest_framework.pagination import PageNumberPagination, LimitOffsetPagination
from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination
from rest_framework.permissions import AllowAny

from fdadb.es_search import EsSearchAPI
Expand Down

0 comments on commit 5b87499

Please sign in to comment.