Пример #1
0
def home(request):
    new_claims = Service.getAllClaim()
    featured_claim = new_claims[0]
    hot_claims = Service.getAllClaim()
    help_titles = Service.getHelpTitleAsDict('home')
    help_descriptions = Service.getHelpDescriptionAsDict('home')
    return render(request, 'market/home.html', locals())
Пример #2
0
def claims(request):
    claims = Service.getAllClaim()
    return render(request, 'market/claims.html', locals())
Пример #3
0
 def get(self, request, format=None):
     claims = Service.getAllClaim()
     serializer = ClaimSerializer(claims, many=True)
     return Response(serializer.data)