Added 'report_pk' to report list json.
This commit is contained in:
parent
a4dbb3f644
commit
1ff30226f9
1 changed files with 4 additions and 1 deletions
|
@ -90,18 +90,21 @@ def reports(request):
|
||||||
data = {
|
data = {
|
||||||
"reports": [
|
"reports": [
|
||||||
{
|
{
|
||||||
|
"report_pk": 1,
|
||||||
"title": "2018 Portland trip",
|
"title": "2018 Portland trip",
|
||||||
"date_created": "2018-05-22T14:56:28.000Z",
|
"date_created": "2018-05-22T14:56:28.000Z",
|
||||||
"state": "created",
|
"state": "created",
|
||||||
"date_submitted": "0000-00-00T00:00:00.000Z"
|
"date_submitted": "0000-00-00T00:00:00.000Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report_pk": 2,
|
||||||
"title": "2017 Los Angeles trip",
|
"title": "2017 Los Angeles trip",
|
||||||
"date_created": "2017-05-22T14:56:28.000Z",
|
"date_created": "2017-05-22T14:56:28.000Z",
|
||||||
"state": "submitted",
|
"state": "submitted",
|
||||||
"date_submitted": "2017-07-22T14:56:28.000Z"
|
"date_submitted": "2017-07-22T14:56:28.000Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report_pk": 3,
|
||||||
"title": "2017 Denver trip",
|
"title": "2017 Denver trip",
|
||||||
"date_created": "2015-04-22T14:56:28.000Z",
|
"date_created": "2015-04-22T14:56:28.000Z",
|
||||||
"state": "accepted",
|
"state": "accepted",
|
||||||
|
@ -216,4 +219,4 @@ def account_logout(request):
|
||||||
'''
|
'''
|
||||||
Log out from a user account
|
Log out from a user account
|
||||||
'''
|
'''
|
||||||
return JsonResponse({"message": "User logged out."})
|
return JsonResponse({"message": "User logged out."})
|
||||||
|
|
Loading…
Reference in a new issue