From 1ec02e1d224142570948a60136230188307a05df Mon Sep 17 00:00:00 2001 From: kououken Date: Tue, 5 Feb 2019 12:48:49 -0800 Subject: [PATCH] Added report_pk to reports api endpoint> --- back/backend/views.py | 1 + back/db.sqlite3 | Bin 59392 -> 59392 bytes 2 files changed, 1 insertion(+) diff --git a/back/backend/views.py b/back/backend/views.py index 21ab7d5..70e3f79 100644 --- a/back/backend/views.py +++ b/back/backend/views.py @@ -139,6 +139,7 @@ def reports(request): queryset = Report.objects.all() for i in queryset: data = { + "report_pk": i.id, "title": i.title, "date_created": i.date_created, "submitted": i.submitted, diff --git a/back/db.sqlite3 b/back/db.sqlite3 index 7c7ffb7bd3ce444e322cde768b99da9a7a1dc08c..2a1a5530382cc2affd37e357a256cd3fa46289dd 100644 GIT binary patch delta 325 zcmZp;z}#?wd4e=!??f4A#@>wyhmH7+46IBntc*DD zu|<+uRfXA?(a5N%*gVZVJ2@*mwKT2BG%-0VrOYt7)GRA4$09vHlYO(t_B|{DY|QQq z%#WCtFdt@aWlm#u-z+F&%se@5KfeIN7E22w69e|mY5V7iOlG;@63x!)+rsKd$O2!N zK+~vjuiVJ0NK?NMM*}~Xpqxk}znsYMu&l_cY*XJ5r<^F4M`WXcRO^Y=04M{ffbq_R( Z3JEmv4W8_?QC-kd0nOQ)Tdvj!0Ra8DW?%pS delta 106 zcmV-w0G0oM&;x+b1CSd5ijf>c0gAC;!!i#rF*-9bIxsmdG&D9aH88U>Gtz(r1p`O` zvkJ5s1CgL7vq-nR1P%oQW&i`?1Ed4P1BC--vk@Fr1CvL;53_Z@j}!<30fYbo!U2S{ MAqaQ@vxL=r673fubN~PV