Changes between Initial Version and Version 1 of Ticket #34516
- Timestamp:
- Apr 25, 2023, 9:50:47 AM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34516 – Description
initial v1 1 ef submit_expense(request): 2 ###user submit expense### 3 #TODO: 4 1 2 from django.shortcuts import render 3 from django.http import JsonResponse 4 from json import JSONEncoder 5 from django.views.decorators.csrf import csrf_exempt 6 from web.models import User,Token,Expense,Income 7 from datetime import datetime 8 # Create your views here. 9 @csrf_exempt 10 def submit_expense(request): 5 11 this_token = request.POST.get("token") 6 7 8 9 12 return JsonResponse({ 10 13 "token": this_token 11 14 } ) 12 why this code return null 15