queryset = TestRecord.objects.all()
serializer_class = TestRecordSerializer
pagination_class = StandardResultsSetPagination
+ # authentication_classes = None
# def get(self, request, *args, **kwargs):
# return self.list(request, *args, **kwargs)
REST_FRAMEWORK = {
- 'DEFAULT_PERMISSION_CLASSES': (
- 'rest_framework.permissions.IsAuthenticated',
- ),
-
- 'DEFAULT_AUTHENTICATION_CLASSES': (
- 'rest_framework.authentication.TokenAuthentication',
- 'rest_framework.authentication.BasicAuthentication',
- 'rest_framework.authentication.SessionAuthentication',
- ),
-
+ # 'DEFAULT_PERMISSION_CLASSES': (
+ # 'rest_framework.permissions.IsAuthenticated',
+ # ),
+
+ # 'DEFAULT_AUTHENTICATION_CLASSES': (
+ # 'rest_framework.authentication.TokenAuthentication',
+ # 'rest_framework.authentication.BasicAuthentication',
+ # 'rest_framework.authentication.SessionAuthentication',
+ # ),
+ 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 20
}
# 'post': 'create'
# })
router = DefaultRouter()
-router.register(r'status', views.TestRecordListViewSet)
+router.register(r'status', TestRecordListViewSet)
urlpatterns = [
# url(r'^admin/', admin.site.urls),