File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
{% extends 'base.html' %}
2
- {% load staticfiles %}
2
+ {% load static %}
3
3
{% load i18n %}
4
4
{% load l10n %}
5
5
{% load class_tag %}
Original file line number Diff line number Diff line change 1
- {% load staticfiles %}
1
+ {% load static %}
2
2
{% load i18n %}
3
3
{% load title_tag %}
4
4
Original file line number Diff line number Diff line change 1
- import datetime
2
- import itertools
3
- import json
4
-
5
- import django
6
- from django .core .serializers import serialize
7
- from django .core .serializers .json import DjangoJSONEncoder
8
1
from django .db .models .functions import TruncHour
9
- from django .http import JsonResponse
10
2
from rest_framework import permissions , viewsets
11
3
from rest_framework .response import Response
12
4
from rest_framework .views import APIView
13
5
14
- from django .utils .translation import gettext as _
15
-
16
6
from ..serializers import *
17
7
18
8
19
9
class DataEntrySet (viewsets .ModelViewSet ):
20
10
"""
21
11
API endpoint that allows data entries to be viewed or edited.
22
12
"""
23
- queryset = DataEntry .objects .all ()
13
+ queryset = DataEntry .objects .all ()[: 100 ]
24
14
serializer_class = DataEntrySerializer
25
15
26
16
permission_classes = (permissions .IsAuthenticated ,)
You can’t perform that action at this time.
0 commit comments