1
|
<!DOCTYPE html>
|
2
|
|
3
|
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4
|
|
5
|
<meta name="robots" content="NONE,NOARCHIVE">
|
6
|
<title>AttributeError
|
7
|
at /admin/pre_flourish/preflourishsubjectscreening/add/</title>
|
8
|
<style type="text/css">
|
9
|
html * { padding:0; margin:0; }
|
10
|
body * { padding:10px 20px; }
|
11
|
body * * { padding:0; }
|
12
|
body { font:small sans-serif; background-color:#fff; color:#000; }
|
13
|
body>div { border-bottom:1px solid #ddd; }
|
14
|
h1 { font-weight:normal; }
|
15
|
h2 { margin-bottom:.8em; }
|
16
|
h3 { margin:1em 0 .5em 0; }
|
17
|
h4 { margin:0 0 .5em 0; font-weight: normal; }
|
18
|
code, pre { font-size: 100%; white-space: pre-wrap; }
|
19
|
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
20
|
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
21
|
thead th {
|
22
|
padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
|
23
|
font-weight:normal; font-size:11px; border:1px solid #ddd;
|
24
|
}
|
25
|
tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
26
|
table.vars { margin:5px 0 2px 40px; }
|
27
|
table.vars td, table.req td { font-family:monospace; }
|
28
|
table td.code { width:100%; }
|
29
|
table td.code pre { overflow:hidden; }
|
30
|
table.source th { color:#666; }
|
31
|
table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
32
|
ul.traceback { list-style-type:none; color: #222; }
|
33
|
ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; }
|
34
|
ul.traceback li.user { background-color:#e0e0e0; color:#000 }
|
35
|
div.context { padding:10px 0; overflow:hidden; }
|
36
|
div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
|
37
|
div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; }
|
38
|
div.context ol li pre { display:inline; }
|
39
|
div.context ol.context-line li { color:#464646; background-color:#dfdfdf; padding: 3px 2px; }
|
40
|
div.context ol.context-line li span { position:absolute; right:32px; }
|
41
|
.user div.context ol.context-line li { background-color:#bbb; color:#000; }
|
42
|
.user div.context ol li { color:#666; }
|
43
|
div.commands { margin-left: 40px; }
|
44
|
div.commands a { color:#555; text-decoration:none; }
|
45
|
.user div.commands a { color: black; }
|
46
|
#summary { background: #ffc; }
|
47
|
#summary h2 { font-weight: normal; color: #666; }
|
48
|
#explanation { background:#eee; }
|
49
|
#template, #template-not-exist { background:#f6f6f6; }
|
50
|
#template-not-exist ul { margin: 0 0 10px 20px; }
|
51
|
#template-not-exist .postmortem-section { margin-bottom: 3px; }
|
52
|
#unicode-hint { background:#eee; }
|
53
|
#traceback { background:#eee; }
|
54
|
#requestinfo { background:#f6f6f6; padding-left:120px; }
|
55
|
#summary table { border:none; background:transparent; }
|
56
|
#requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
|
57
|
#requestinfo h3 { margin-bottom:-1em; }
|
58
|
.error { background: #ffc; }
|
59
|
.specific { color:#cc3300; font-weight:bold; }
|
60
|
h2 span.commands { font-size:.7em; font-weight:normal; }
|
61
|
span.commands a:link {color:#5E5694;}
|
62
|
pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; }
|
63
|
.append-bottom { margin-bottom: 10px; }
|
64
|
.fname { user-select: all; }
|
65
|
</style>
|
66
|
|
67
|
<script>
|
68
|
function hideAll(elems) {
|
69
|
for (var e = 0; e < elems.length; e++) {
|
70
|
elems[e].style.display = 'none';
|
71
|
}
|
72
|
}
|
73
|
window.onload = function() {
|
74
|
hideAll(document.querySelectorAll('table.vars'));
|
75
|
hideAll(document.querySelectorAll('ol.pre-context'));
|
76
|
hideAll(document.querySelectorAll('ol.post-context'));
|
77
|
hideAll(document.querySelectorAll('div.pastebin'));
|
78
|
}
|
79
|
function toggle() {
|
80
|
for (var i = 0; i < arguments.length; i++) {
|
81
|
var e = document.getElementById(arguments[i]);
|
82
|
if (e) {
|
83
|
e.style.display = e.style.display == 'none' ? 'block': 'none';
|
84
|
}
|
85
|
}
|
86
|
return false;
|
87
|
}
|
88
|
function varToggle(link, id) {
|
89
|
toggle('v' + id);
|
90
|
var s = link.getElementsByTagName('span')[0];
|
91
|
var uarr = String.fromCharCode(0x25b6);
|
92
|
var darr = String.fromCharCode(0x25bc);
|
93
|
s.textContent = s.textContent == uarr ? darr : uarr;
|
94
|
return false;
|
95
|
}
|
96
|
function switchPastebinFriendly(link) {
|
97
|
s1 = "Switch to copy-and-paste view";
|
98
|
s2 = "Switch back to interactive view";
|
99
|
link.textContent = link.textContent.trim() == s1 ? s2: s1;
|
100
|
toggle('browserTraceback', 'pastebinTraceback');
|
101
|
return false;
|
102
|
}
|
103
|
</script>
|
104
|
|
105
|
</head>
|
106
|
<body>
|
107
|
<div id="summary">
|
108
|
<h1>AttributeError
|
109
|
at /admin/pre_flourish/preflourishsubjectscreening/add/</h1>
|
110
|
<pre class="exception_value">'NoneType' object has no attribute 'subject_identifier'</pre>
|
111
|
<table class="meta">
|
112
|
|
113
|
<tbody><tr>
|
114
|
<th>Request Method:</th>
|
115
|
<td>POST</td>
|
116
|
</tr>
|
117
|
<tr>
|
118
|
<th>Request URL:</th>
|
119
|
<td>http://127.0.0.1:9000/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=</td>
|
120
|
</tr>
|
121
|
|
122
|
<tr>
|
123
|
<th>Django Version:</th>
|
124
|
<td>3.1.14</td>
|
125
|
</tr>
|
126
|
|
127
|
<tr>
|
128
|
<th>Exception Type:</th>
|
129
|
<td>AttributeError</td>
|
130
|
</tr>
|
131
|
|
132
|
|
133
|
<tr>
|
134
|
<th>Exception Value:</th>
|
135
|
<td><pre>'NoneType' object has no attribute 'subject_identifier'</pre></td>
|
136
|
</tr>
|
137
|
|
138
|
|
139
|
<tr>
|
140
|
<th>Exception Location:</th>
|
141
|
<td><span class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/signals.py</span>, line 26, in update_locator</td>
|
142
|
</tr>
|
143
|
|
144
|
<tr>
|
145
|
<th>Python Executable:</th>
|
146
|
<td>/home/flourish/.venvs/flourish/bin/python3.8</td>
|
147
|
</tr>
|
148
|
<tr>
|
149
|
<th>Python Version:</th>
|
150
|
<td>3.8.0</td>
|
151
|
</tr>
|
152
|
<tr>
|
153
|
<th>Python Path:</th>
|
154
|
<td><pre>['/home/flourish/source/flourish',
|
155
|
'/home/flourish/.venvs/flourish/lib/python3.8/site-packages/git/ext/gitdb',
|
156
|
'/home/flourish/source/flourish',
|
157
|
'/home/flourish/.venvs/flourish/bin',
|
158
|
'/usr/lib/python38.zip',
|
159
|
'/usr/lib/python3.8',
|
160
|
'/usr/lib/python3.8/lib-dynload',
|
161
|
'/home/flourish/.venvs/flourish/lib/python3.8/site-packages',
|
162
|
'/home/flourish/.venvs/flourish/lib/python3.8/site-packages/gitdb/ext/smmap']</pre></td>
|
163
|
</tr>
|
164
|
<tr>
|
165
|
<th>Server time:</th>
|
166
|
<td>Tue, 17 Oct 2023 14:30:18 +0200</td>
|
167
|
</tr>
|
168
|
</tbody></table>
|
169
|
</div>
|
170
|
|
171
|
|
172
|
|
173
|
|
174
|
<div id="traceback">
|
175
|
<h2>Traceback <span class="commands"><a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return switchPastebinFriendly(this);">
|
176
|
Switch to copy-and-paste view</a></span>
|
177
|
</h2>
|
178
|
<div id="browserTraceback">
|
179
|
<ul class="traceback">
|
180
|
|
181
|
|
182
|
<li class="frame django">
|
183
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/core/handlers/exception.py</code>, line 47, in inner
|
184
|
|
185
|
|
186
|
<div class="context" id="c140358891058944">
|
187
|
|
188
|
<ol start="40" class="pre-context" id="pre140358891058944" style="display: none;">
|
189
|
|
190
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)</pre></li>
|
191
|
|
192
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> return response</pre></li>
|
193
|
|
194
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> return inner</pre></li>
|
195
|
|
196
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> else:</pre></li>
|
197
|
|
198
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> @wraps(get_response)</pre></li>
|
199
|
|
200
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> def inner(request):</pre></li>
|
201
|
|
202
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> try:</pre></li>
|
203
|
|
204
|
</ol>
|
205
|
|
206
|
<ol start="47" class="context-line">
|
207
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> response = get_response(request)</pre> <span>…</span></li>
|
208
|
</ol>
|
209
|
|
210
|
<ol start="48" class="post-context" id="post140358891058944" style="display: none;">
|
211
|
|
212
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> except Exception as exc:</pre></li>
|
213
|
|
214
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> response = response_for_exception(request, exc)</pre></li>
|
215
|
|
216
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> return response</pre></li>
|
217
|
|
218
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre> return inner</pre></li>
|
219
|
|
220
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre></pre></li>
|
221
|
|
222
|
<li onclick="toggle('pre140358891058944', 'post140358891058944')"><pre></pre></li>
|
223
|
|
224
|
</ol>
|
225
|
|
226
|
</div>
|
227
|
|
228
|
|
229
|
|
230
|
<div class="commands">
|
231
|
|
232
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891058944')"><span>â–¶</span> Local vars</a>
|
233
|
|
234
|
</div>
|
235
|
<table class="vars" id="v140358891058944" style="display: none;">
|
236
|
<thead>
|
237
|
<tr>
|
238
|
<th>Variable</th>
|
239
|
<th>Value</th>
|
240
|
</tr>
|
241
|
</thead>
|
242
|
<tbody>
|
243
|
|
244
|
<tr>
|
245
|
<td>exc</td>
|
246
|
<td class="code"><pre>AttributeError("'NoneType' object has no attribute 'subject_identifier'")</pre></td>
|
247
|
</tr>
|
248
|
|
249
|
<tr>
|
250
|
<td>get_response</td>
|
251
|
<td class="code"><pre><bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa7e48caa60>></pre></td>
|
252
|
</tr>
|
253
|
|
254
|
<tr>
|
255
|
<td>request</td>
|
256
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
257
|
</tr>
|
258
|
|
259
|
</tbody>
|
260
|
</table>
|
261
|
|
262
|
</li>
|
263
|
|
264
|
|
265
|
<li class="frame django">
|
266
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/core/handlers/base.py</code>, line 181, in _get_response
|
267
|
|
268
|
|
269
|
<div class="context" id="c140358891441792">
|
270
|
|
271
|
<ol start="174" class="pre-context" id="pre140358891441792" style="display: none;">
|
272
|
|
273
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre></pre></li>
|
274
|
|
275
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> if response is None:</pre></li>
|
276
|
|
277
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li>
|
278
|
|
279
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> # If it is an asynchronous view, run it in a subthread.</pre></li>
|
280
|
|
281
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> if asyncio.iscoroutinefunction(wrapped_callback):</pre></li>
|
282
|
|
283
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> wrapped_callback = async_to_sync(wrapped_callback)</pre></li>
|
284
|
|
285
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> try:</pre></li>
|
286
|
|
287
|
</ol>
|
288
|
|
289
|
<ol start="181" class="context-line">
|
290
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> <span>…</span></li>
|
291
|
</ol>
|
292
|
|
293
|
<ol start="182" class="post-context" id="post140358891441792" style="display: none;">
|
294
|
|
295
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> except Exception as e:</pre></li>
|
296
|
|
297
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> response = self.process_exception_by_middleware(e, request)</pre></li>
|
298
|
|
299
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> if response is None:</pre></li>
|
300
|
|
301
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> raise</pre></li>
|
302
|
|
303
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre></pre></li>
|
304
|
|
305
|
<li onclick="toggle('pre140358891441792', 'post140358891441792')"><pre> # Complain if the view returned None (a common error).</pre></li>
|
306
|
|
307
|
</ol>
|
308
|
|
309
|
</div>
|
310
|
|
311
|
|
312
|
|
313
|
<div class="commands">
|
314
|
|
315
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891441792')"><span>â–¶</span> Local vars</a>
|
316
|
|
317
|
</div>
|
318
|
<table class="vars" id="v140358891441792" style="display: none;">
|
319
|
<thead>
|
320
|
<tr>
|
321
|
<th>Variable</th>
|
322
|
<th>Value</th>
|
323
|
</tr>
|
324
|
</thead>
|
325
|
<tbody>
|
326
|
|
327
|
<tr>
|
328
|
<td>callback</td>
|
329
|
<td class="code"><pre><function ModelAdminNextUrlRedirectMixin.add_view at 0x7fa7e46f2a60></pre></td>
|
330
|
</tr>
|
331
|
|
332
|
<tr>
|
333
|
<td>callback_args</td>
|
334
|
<td class="code"><pre>()</pre></td>
|
335
|
</tr>
|
336
|
|
337
|
<tr>
|
338
|
<td>callback_kwargs</td>
|
339
|
<td class="code"><pre>{}</pre></td>
|
340
|
</tr>
|
341
|
|
342
|
<tr>
|
343
|
<td>middleware_method</td>
|
344
|
<td class="code"><pre><bound method DashboardMiddleware.process_view of <edc_subject_dashboard.middleware.DashboardMiddleware object at 0x7fa7da9fc6a0>></pre></td>
|
345
|
</tr>
|
346
|
|
347
|
<tr>
|
348
|
<td>request</td>
|
349
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
350
|
</tr>
|
351
|
|
352
|
<tr>
|
353
|
<td>response</td>
|
354
|
<td class="code"><pre>None</pre></td>
|
355
|
</tr>
|
356
|
|
357
|
<tr>
|
358
|
<td>self</td>
|
359
|
<td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7fa7e48caa60></pre></td>
|
360
|
</tr>
|
361
|
|
362
|
<tr>
|
363
|
<td>wrapped_callback</td>
|
364
|
<td class="code"><pre><function ModelAdminNextUrlRedirectMixin.add_view at 0x7fa7e46f2a60></pre></td>
|
365
|
</tr>
|
366
|
|
367
|
</tbody>
|
368
|
</table>
|
369
|
|
370
|
</li>
|
371
|
|
372
|
|
373
|
<li class="frame django">
|
374
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py</code>, line 614, in wrapper
|
375
|
|
376
|
|
377
|
<div class="context" id="c140358890356544">
|
378
|
|
379
|
<ol start="607" class="pre-context" id="pre140358890356544" style="display: none;">
|
380
|
|
381
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> return inline_instances</pre></li>
|
382
|
|
383
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre></pre></li>
|
384
|
|
385
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> def get_urls(self):</pre></li>
|
386
|
|
387
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> from django.urls import path</pre></li>
|
388
|
|
389
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre></pre></li>
|
390
|
|
391
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> def wrap(view):</pre></li>
|
392
|
|
393
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> def wrapper(*args, **kwargs):</pre></li>
|
394
|
|
395
|
</ol>
|
396
|
|
397
|
<ol start="614" class="context-line">
|
398
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> return self.admin_site.admin_view(view)(*args, **kwargs)</pre> <span>…</span></li>
|
399
|
</ol>
|
400
|
|
401
|
<ol start="615" class="post-context" id="post140358890356544" style="display: none;">
|
402
|
|
403
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> wrapper.model_admin = self</pre></li>
|
404
|
|
405
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> return update_wrapper(wrapper, view)</pre></li>
|
406
|
|
407
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre></pre></li>
|
408
|
|
409
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> info = self.model._meta.app_label, self.model._meta.model_name</pre></li>
|
410
|
|
411
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre></pre></li>
|
412
|
|
413
|
<li onclick="toggle('pre140358890356544', 'post140358890356544')"><pre> return [</pre></li>
|
414
|
|
415
|
</ol>
|
416
|
|
417
|
</div>
|
418
|
|
419
|
|
420
|
|
421
|
<div class="commands">
|
422
|
|
423
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890356544')"><span>â–¶</span> Local vars</a>
|
424
|
|
425
|
</div>
|
426
|
<table class="vars" id="v140358890356544" style="display: none;">
|
427
|
<thead>
|
428
|
<tr>
|
429
|
<th>Variable</th>
|
430
|
<th>Value</th>
|
431
|
</tr>
|
432
|
</thead>
|
433
|
<tbody>
|
434
|
|
435
|
<tr>
|
436
|
<td>args</td>
|
437
|
<td class="code"><pre>(<WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='>,)</pre></td>
|
438
|
</tr>
|
439
|
|
440
|
<tr>
|
441
|
<td>kwargs</td>
|
442
|
<td class="code"><pre>{}</pre></td>
|
443
|
</tr>
|
444
|
|
445
|
<tr>
|
446
|
<td>self</td>
|
447
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
448
|
</tr>
|
449
|
|
450
|
<tr>
|
451
|
<td>view</td>
|
452
|
<td class="code"><pre><bound method ModelAdminNextUrlRedirectMixin.add_view of <pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0>></pre></td>
|
453
|
</tr>
|
454
|
|
455
|
</tbody>
|
456
|
</table>
|
457
|
|
458
|
</li>
|
459
|
|
460
|
|
461
|
<li class="frame django">
|
462
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py</code>, line 130, in _wrapped_view
|
463
|
|
464
|
|
465
|
<div class="context" id="c140358890735296">
|
466
|
|
467
|
<ol start="123" class="pre-context" id="pre140358890735296" style="display: none;">
|
468
|
|
469
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> if result is not None:</pre></li>
|
470
|
|
471
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> return result</pre></li>
|
472
|
|
473
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> if hasattr(middleware, 'process_view'):</pre></li>
|
474
|
|
475
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> result = middleware.process_view(request, view_func, args, kwargs)</pre></li>
|
476
|
|
477
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> if result is not None:</pre></li>
|
478
|
|
479
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> return result</pre></li>
|
480
|
|
481
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> try:</pre></li>
|
482
|
|
483
|
</ol>
|
484
|
|
485
|
<ol start="130" class="context-line">
|
486
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> response = view_func(request, *args, **kwargs)</pre> <span>…</span></li>
|
487
|
</ol>
|
488
|
|
489
|
<ol start="131" class="post-context" id="post140358890735296" style="display: none;">
|
490
|
|
491
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> except Exception as e:</pre></li>
|
492
|
|
493
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> if hasattr(middleware, 'process_exception'):</pre></li>
|
494
|
|
495
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> result = middleware.process_exception(request, e)</pre></li>
|
496
|
|
497
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> if result is not None:</pre></li>
|
498
|
|
499
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> return result</pre></li>
|
500
|
|
501
|
<li onclick="toggle('pre140358890735296', 'post140358890735296')"><pre> raise</pre></li>
|
502
|
|
503
|
</ol>
|
504
|
|
505
|
</div>
|
506
|
|
507
|
|
508
|
|
509
|
<div class="commands">
|
510
|
|
511
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890735296')"><span>â–¶</span> Local vars</a>
|
512
|
|
513
|
</div>
|
514
|
<table class="vars" id="v140358890735296" style="display: none;">
|
515
|
<thead>
|
516
|
<tr>
|
517
|
<th>Variable</th>
|
518
|
<th>Value</th>
|
519
|
</tr>
|
520
|
</thead>
|
521
|
<tbody>
|
522
|
|
523
|
<tr>
|
524
|
<td>args</td>
|
525
|
<td class="code"><pre>()</pre></td>
|
526
|
</tr>
|
527
|
|
528
|
<tr>
|
529
|
<td>kwargs</td>
|
530
|
<td class="code"><pre>{}</pre></td>
|
531
|
</tr>
|
532
|
|
533
|
<tr>
|
534
|
<td>middleware</td>
|
535
|
<td class="code"><pre><django.middleware.csrf.CsrfViewMiddleware object at 0x7fa7d9d39100></pre></td>
|
536
|
</tr>
|
537
|
|
538
|
<tr>
|
539
|
<td>request</td>
|
540
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
541
|
</tr>
|
542
|
|
543
|
<tr>
|
544
|
<td>result</td>
|
545
|
<td class="code"><pre>None</pre></td>
|
546
|
</tr>
|
547
|
|
548
|
<tr>
|
549
|
<td>view_func</td>
|
550
|
<td class="code"><pre><function AdminSite.admin_view.<locals>.inner at 0x7fa7d9e92b80></pre></td>
|
551
|
</tr>
|
552
|
|
553
|
</tbody>
|
554
|
</table>
|
555
|
|
556
|
</li>
|
557
|
|
558
|
|
559
|
<li class="frame django">
|
560
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/views/decorators/cache.py</code>, line 44, in _wrapped_view_func
|
561
|
|
562
|
|
563
|
<div class="context" id="c140358890734016">
|
564
|
|
565
|
<ol start="37" class="pre-context" id="pre140358890734016" style="display: none;">
|
566
|
|
567
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre></pre></li>
|
568
|
|
569
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre>def never_cache(view_func):</pre></li>
|
570
|
|
571
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> """</pre></li>
|
572
|
|
573
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> Decorator that adds headers to a response so that it will never be cached.</pre></li>
|
574
|
|
575
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> """</pre></li>
|
576
|
|
577
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> @wraps(view_func)</pre></li>
|
578
|
|
579
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> def _wrapped_view_func(request, *args, **kwargs):</pre></li>
|
580
|
|
581
|
</ol>
|
582
|
|
583
|
<ol start="44" class="context-line">
|
584
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> response = view_func(request, *args, **kwargs)</pre> <span>…</span></li>
|
585
|
</ol>
|
586
|
|
587
|
<ol start="45" class="post-context" id="post140358890734016" style="display: none;">
|
588
|
|
589
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> add_never_cache_headers(response)</pre></li>
|
590
|
|
591
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> return response</pre></li>
|
592
|
|
593
|
<li onclick="toggle('pre140358890734016', 'post140358890734016')"><pre> return _wrapped_view_func</pre></li>
|
594
|
|
595
|
</ol>
|
596
|
|
597
|
</div>
|
598
|
|
599
|
|
600
|
|
601
|
<div class="commands">
|
602
|
|
603
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890734016')"><span>â–¶</span> Local vars</a>
|
604
|
|
605
|
</div>
|
606
|
<table class="vars" id="v140358890734016" style="display: none;">
|
607
|
<thead>
|
608
|
<tr>
|
609
|
<th>Variable</th>
|
610
|
<th>Value</th>
|
611
|
</tr>
|
612
|
</thead>
|
613
|
<tbody>
|
614
|
|
615
|
<tr>
|
616
|
<td>args</td>
|
617
|
<td class="code"><pre>()</pre></td>
|
618
|
</tr>
|
619
|
|
620
|
<tr>
|
621
|
<td>kwargs</td>
|
622
|
<td class="code"><pre>{}</pre></td>
|
623
|
</tr>
|
624
|
|
625
|
<tr>
|
626
|
<td>request</td>
|
627
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
628
|
</tr>
|
629
|
|
630
|
<tr>
|
631
|
<td>view_func</td>
|
632
|
<td class="code"><pre><function AdminSite.admin_view.<locals>.inner at 0x7fa7d9e92820></pre></td>
|
633
|
</tr>
|
634
|
|
635
|
</tbody>
|
636
|
</table>
|
637
|
|
638
|
</li>
|
639
|
|
640
|
|
641
|
<li class="frame django">
|
642
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/sites.py</code>, line 233, in inner
|
643
|
|
644
|
|
645
|
<div class="context" id="c140358890354112">
|
646
|
|
647
|
<ol start="226" class="pre-context" id="pre140358890354112" style="display: none;">
|
648
|
|
649
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> # Inner import to prevent django.contrib.admin (app) from</pre></li>
|
650
|
|
651
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> # importing django.contrib.auth.models.User (unrelated model).</pre></li>
|
652
|
|
653
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> from django.contrib.auth.views import redirect_to_login</pre></li>
|
654
|
|
655
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> return redirect_to_login(</pre></li>
|
656
|
|
657
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> request.get_full_path(),</pre></li>
|
658
|
|
659
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> reverse('admin:login', current_app=self.name)</pre></li>
|
660
|
|
661
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> )</pre></li>
|
662
|
|
663
|
</ol>
|
664
|
|
665
|
<ol start="233" class="context-line">
|
666
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> return view(request, *args, **kwargs)</pre> <span>…</span></li>
|
667
|
</ol>
|
668
|
|
669
|
<ol start="234" class="post-context" id="post140358890354112" style="display: none;">
|
670
|
|
671
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> if not cacheable:</pre></li>
|
672
|
|
673
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> inner = never_cache(inner)</pre></li>
|
674
|
|
675
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> # We add csrf_protect here so this function can be used as a utility</pre></li>
|
676
|
|
677
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> # function for any view, without having to repeat 'csrf_protect'.</pre></li>
|
678
|
|
679
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> if not getattr(view, 'csrf_exempt', False):</pre></li>
|
680
|
|
681
|
<li onclick="toggle('pre140358890354112', 'post140358890354112')"><pre> inner = csrf_protect(inner)</pre></li>
|
682
|
|
683
|
</ol>
|
684
|
|
685
|
</div>
|
686
|
|
687
|
|
688
|
|
689
|
<div class="commands">
|
690
|
|
691
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890354112')"><span>â–¶</span> Local vars</a>
|
692
|
|
693
|
</div>
|
694
|
<table class="vars" id="v140358890354112" style="display: none;">
|
695
|
<thead>
|
696
|
<tr>
|
697
|
<th>Variable</th>
|
698
|
<th>Value</th>
|
699
|
</tr>
|
700
|
</thead>
|
701
|
<tbody>
|
702
|
|
703
|
<tr>
|
704
|
<td>args</td>
|
705
|
<td class="code"><pre>()</pre></td>
|
706
|
</tr>
|
707
|
|
708
|
<tr>
|
709
|
<td>kwargs</td>
|
710
|
<td class="code"><pre>{}</pre></td>
|
711
|
</tr>
|
712
|
|
713
|
<tr>
|
714
|
<td>request</td>
|
715
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
716
|
</tr>
|
717
|
|
718
|
<tr>
|
719
|
<td>self</td>
|
720
|
<td class="code"><pre><pre_flourish.admin_site.AdminSite object at 0x7fa7e4c798b0></pre></td>
|
721
|
</tr>
|
722
|
|
723
|
<tr>
|
724
|
<td>view</td>
|
725
|
<td class="code"><pre><bound method ModelAdminNextUrlRedirectMixin.add_view of <pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0>></pre></td>
|
726
|
</tr>
|
727
|
|
728
|
</tbody>
|
729
|
</table>
|
730
|
|
731
|
</li>
|
732
|
|
733
|
|
734
|
<li class="frame user">
|
735
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_next_url_redirect_mixin.py</code>, line 58, in add_view
|
736
|
|
737
|
|
738
|
<div class="context" id="c140358890355328">
|
739
|
|
740
|
<ol start="51" class="pre-context" id="pre140358890355328" style="display: none;">
|
741
|
|
742
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> """Redirect before save on "cancel", otherwise return</pre></li>
|
743
|
|
744
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> normal behavior.</pre></li>
|
745
|
|
746
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> """</pre></li>
|
747
|
|
748
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> if self.show_cancel and request.POST.get('_cancel'):</pre></li>
|
749
|
|
750
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> redirect_url = self.get_next_redirect_url(request=request)</pre></li>
|
751
|
|
752
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> return HttpResponseRedirect(redirect_url)</pre></li>
|
753
|
|
754
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> extra_context = self.extra_context(extra_context)</pre></li>
|
755
|
|
756
|
</ol>
|
757
|
|
758
|
<ol start="58" class="context-line">
|
759
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> return super().add_view(request, form_url=form_url, extra_context=extra_context)</pre> <span>…</span></li>
|
760
|
</ol>
|
761
|
|
762
|
<ol start="59" class="post-context" id="post140358890355328" style="display: none;">
|
763
|
|
764
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre></pre></li>
|
765
|
|
766
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> def change_view(self, request, object_id, form_url='', extra_context=None):</pre></li>
|
767
|
|
768
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> """Redirect before save on "cancel", otherwise return</pre></li>
|
769
|
|
770
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> normal behavior.</pre></li>
|
771
|
|
772
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> """</pre></li>
|
773
|
|
774
|
<li onclick="toggle('pre140358890355328', 'post140358890355328')"><pre> if self.show_cancel and request.POST.get('_cancel'):</pre></li>
|
775
|
|
776
|
</ol>
|
777
|
|
778
|
</div>
|
779
|
|
780
|
|
781
|
|
782
|
<div class="commands">
|
783
|
|
784
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890355328')"><span>â–¶</span> Local vars</a>
|
785
|
|
786
|
</div>
|
787
|
<table class="vars" id="v140358890355328" style="display: none;">
|
788
|
<thead>
|
789
|
<tr>
|
790
|
<th>Variable</th>
|
791
|
<th>Value</th>
|
792
|
</tr>
|
793
|
</thead>
|
794
|
<tbody>
|
795
|
|
796
|
<tr>
|
797
|
<td>__class__</td>
|
798
|
<td class="code"><pre><class 'edc_model_admin.model_admin_next_url_redirect_mixin.ModelAdminNextUrlRedirectMixin'></pre></td>
|
799
|
</tr>
|
800
|
|
801
|
<tr>
|
802
|
<td>extra_context</td>
|
803
|
<td class="code"><pre>{}</pre></td>
|
804
|
</tr>
|
805
|
|
806
|
<tr>
|
807
|
<td>form_url</td>
|
808
|
<td class="code"><pre>''</pre></td>
|
809
|
</tr>
|
810
|
|
811
|
<tr>
|
812
|
<td>request</td>
|
813
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
814
|
</tr>
|
815
|
|
816
|
<tr>
|
817
|
<td>self</td>
|
818
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
819
|
</tr>
|
820
|
|
821
|
</tbody>
|
822
|
</table>
|
823
|
|
824
|
</li>
|
825
|
|
826
|
|
827
|
<li class="frame user">
|
828
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_form_instructions_mixin.py</code>, line 59, in add_view
|
829
|
|
830
|
|
831
|
<div class="context" id="c140358890356096">
|
832
|
|
833
|
<ol start="52" class="pre-context" id="pre140358890356096" style="display: none;">
|
834
|
|
835
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> 'instructions'] = self.change_instructions or self.instructions</pre></li>
|
836
|
|
837
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> extra_context['additional_instructions'] = (</pre></li>
|
838
|
|
839
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> self.change_additional_instructions or self.additional_instructions)</pre></li>
|
840
|
|
841
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> return extra_context</pre></li>
|
842
|
|
843
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre></pre></li>
|
844
|
|
845
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> def add_view(self, request, form_url='', extra_context=None):</pre></li>
|
846
|
|
847
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> extra_context = self.update_add_instructions(extra_context)</pre></li>
|
848
|
|
849
|
</ol>
|
850
|
|
851
|
<ol start="59" class="context-line">
|
852
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> return super().add_view(</pre> <span>…</span></li>
|
853
|
</ol>
|
854
|
|
855
|
<ol start="60" class="post-context" id="post140358890356096" style="display: none;">
|
856
|
|
857
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> request, form_url=form_url, extra_context=extra_context)</pre></li>
|
858
|
|
859
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre></pre></li>
|
860
|
|
861
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> def change_view(self, request, object_id, form_url='', extra_context=None):</pre></li>
|
862
|
|
863
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> extra_context = self.update_change_instructions(extra_context)</pre></li>
|
864
|
|
865
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> return super().change_view(</pre></li>
|
866
|
|
867
|
<li onclick="toggle('pre140358890356096', 'post140358890356096')"><pre> request, object_id, form_url=form_url, extra_context=extra_context)</pre></li>
|
868
|
|
869
|
</ol>
|
870
|
|
871
|
</div>
|
872
|
|
873
|
|
874
|
|
875
|
<div class="commands">
|
876
|
|
877
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890356096')"><span>â–¶</span> Local vars</a>
|
878
|
|
879
|
</div>
|
880
|
<table class="vars" id="v140358890356096" style="display: none;">
|
881
|
<thead>
|
882
|
<tr>
|
883
|
<th>Variable</th>
|
884
|
<th>Value</th>
|
885
|
</tr>
|
886
|
</thead>
|
887
|
<tbody>
|
888
|
|
889
|
<tr>
|
890
|
<td>__class__</td>
|
891
|
<td class="code"><pre><class 'edc_model_admin.model_admin_form_instructions_mixin.ModelAdminFormInstructionsMixin'></pre></td>
|
892
|
</tr>
|
893
|
|
894
|
<tr>
|
895
|
<td>extra_context</td>
|
896
|
<td class="code"><pre>{'additional_instructions': None,
|
897
|
'copyright': '2010-2023',
|
898
|
'disclaimer': 'For research purposes only.',
|
899
|
'institution': 'Botswana-Harvard AIDS Institute',
|
900
|
'instructions': 'Please complete the form below. Required questions are in '
|
901
|
'bold. When all required questions are complete click SAVE '
|
902
|
'or, if available, SAVE NEXT. Based on your responses, '
|
903
|
'additional questions may be required or some answers may '
|
904
|
'need to be corrected.',
|
905
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
906
|
'revision': ''}</pre></td>
|
907
|
</tr>
|
908
|
|
909
|
<tr>
|
910
|
<td>form_url</td>
|
911
|
<td class="code"><pre>''</pre></td>
|
912
|
</tr>
|
913
|
|
914
|
<tr>
|
915
|
<td>request</td>
|
916
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
917
|
</tr>
|
918
|
|
919
|
<tr>
|
920
|
<td>self</td>
|
921
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
922
|
</tr>
|
923
|
|
924
|
</tbody>
|
925
|
</table>
|
926
|
|
927
|
</li>
|
928
|
|
929
|
|
930
|
<li class="frame user">
|
931
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django_revision/modeladmin_mixin.py</code>, line 19, in add_view
|
932
|
|
933
|
|
934
|
<div class="context" id="c140358890354880">
|
935
|
|
936
|
<ol start="12" class="pre-context" id="pre140358890354880" style="display: none;">
|
937
|
|
938
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> <p class="help">Edc Revision {{ revision|default:'unknown?' }}</p></pre></li>
|
939
|
|
940
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> {% endblock %}</pre></li>
|
941
|
|
942
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> """</pre></li>
|
943
|
|
944
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre></pre></li>
|
945
|
|
946
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> def add_view(self, request, form_url='', extra_context=None):</pre></li>
|
947
|
|
948
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> extra_context = extra_context or {}</pre></li>
|
949
|
|
950
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> extra_context.update({'revision': site_revision.revision})</pre></li>
|
951
|
|
952
|
</ol>
|
953
|
|
954
|
<ol start="19" class="context-line">
|
955
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> return super(ModelAdminRevisionMixin, self).add_view(request, form_url=form_url, extra_context=extra_context)</pre> <span>…</span></li>
|
956
|
</ol>
|
957
|
|
958
|
<ol start="20" class="post-context" id="post140358890354880" style="display: none;">
|
959
|
|
960
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre></pre></li>
|
961
|
|
962
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> def change_view(self, request, object_id, form_url='', extra_context=None):</pre></li>
|
963
|
|
964
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> extra_context = extra_context or {}</pre></li>
|
965
|
|
966
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> extra_context.update({'revision': site_revision.revision})</pre></li>
|
967
|
|
968
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> return super(ModelAdminRevisionMixin, self).change_view(</pre></li>
|
969
|
|
970
|
<li onclick="toggle('pre140358890354880', 'post140358890354880')"><pre> request, object_id, form_url=form_url, extra_context=extra_context)</pre></li>
|
971
|
|
972
|
</ol>
|
973
|
|
974
|
</div>
|
975
|
|
976
|
|
977
|
|
978
|
<div class="commands">
|
979
|
|
980
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890354880')"><span>â–¶</span> Local vars</a>
|
981
|
|
982
|
</div>
|
983
|
<table class="vars" id="v140358890354880" style="display: none;">
|
984
|
<thead>
|
985
|
<tr>
|
986
|
<th>Variable</th>
|
987
|
<th>Value</th>
|
988
|
</tr>
|
989
|
</thead>
|
990
|
<tbody>
|
991
|
|
992
|
<tr>
|
993
|
<td>__class__</td>
|
994
|
<td class="code"><pre><class 'django_revision.modeladmin_mixin.ModelAdminRevisionMixin'></pre></td>
|
995
|
</tr>
|
996
|
|
997
|
<tr>
|
998
|
<td>extra_context</td>
|
999
|
<td class="code"><pre>{'additional_instructions': None,
|
1000
|
'copyright': '2010-2023',
|
1001
|
'disclaimer': 'For research purposes only.',
|
1002
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1003
|
'instructions': 'Please complete the form below. Required questions are in '
|
1004
|
'bold. When all required questions are complete click SAVE '
|
1005
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1006
|
'additional questions may be required or some answers may '
|
1007
|
'need to be corrected.',
|
1008
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1009
|
'revision': ''}</pre></td>
|
1010
|
</tr>
|
1011
|
|
1012
|
<tr>
|
1013
|
<td>form_url</td>
|
1014
|
<td class="code"><pre>''</pre></td>
|
1015
|
</tr>
|
1016
|
|
1017
|
<tr>
|
1018
|
<td>request</td>
|
1019
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1020
|
</tr>
|
1021
|
|
1022
|
<tr>
|
1023
|
<td>self</td>
|
1024
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1025
|
</tr>
|
1026
|
|
1027
|
</tbody>
|
1028
|
</table>
|
1029
|
|
1030
|
</li>
|
1031
|
|
1032
|
|
1033
|
<li class="frame user">
|
1034
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_institution_mixin.py</code>, line 21, in add_view
|
1035
|
|
1036
|
|
1037
|
<div class="context" id="c140358889845888">
|
1038
|
|
1039
|
<ol start="14" class="pre-context" id="pre140358889845888" style="display: none;">
|
1040
|
|
1041
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> 'license': app_config.license or '',</pre></li>
|
1042
|
|
1043
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> 'disclaimer': app_config.disclaimer})</pre></li>
|
1044
|
|
1045
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> return extra_context</pre></li>
|
1046
|
|
1047
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre></pre></li>
|
1048
|
|
1049
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> def add_view(self, request, form_url='', extra_context=None):</pre></li>
|
1050
|
|
1051
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> extra_context = extra_context or {}</pre></li>
|
1052
|
|
1053
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> extra_context = self.get_institution_extra_context(extra_context)</pre></li>
|
1054
|
|
1055
|
</ol>
|
1056
|
|
1057
|
<ol start="21" class="context-line">
|
1058
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> return super().add_view(</pre> <span>…</span></li>
|
1059
|
</ol>
|
1060
|
|
1061
|
<ol start="22" class="post-context" id="post140358889845888" style="display: none;">
|
1062
|
|
1063
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> request, form_url=form_url, extra_context=extra_context)</pre></li>
|
1064
|
|
1065
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre></pre></li>
|
1066
|
|
1067
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> def change_view(self, request, object_id, form_url='', extra_context=None):</pre></li>
|
1068
|
|
1069
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> extra_context = extra_context or {}</pre></li>
|
1070
|
|
1071
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> extra_context = self.get_institution_extra_context(extra_context)</pre></li>
|
1072
|
|
1073
|
<li onclick="toggle('pre140358889845888', 'post140358889845888')"><pre> return super().change_view(</pre></li>
|
1074
|
|
1075
|
</ol>
|
1076
|
|
1077
|
</div>
|
1078
|
|
1079
|
|
1080
|
|
1081
|
<div class="commands">
|
1082
|
|
1083
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889845888')"><span>â–¶</span> Local vars</a>
|
1084
|
|
1085
|
</div>
|
1086
|
<table class="vars" id="v140358889845888" style="display: none;">
|
1087
|
<thead>
|
1088
|
<tr>
|
1089
|
<th>Variable</th>
|
1090
|
<th>Value</th>
|
1091
|
</tr>
|
1092
|
</thead>
|
1093
|
<tbody>
|
1094
|
|
1095
|
<tr>
|
1096
|
<td>__class__</td>
|
1097
|
<td class="code"><pre><class 'edc_model_admin.model_admin_institution_mixin.ModelAdminInstitutionMixin'></pre></td>
|
1098
|
</tr>
|
1099
|
|
1100
|
<tr>
|
1101
|
<td>extra_context</td>
|
1102
|
<td class="code"><pre>{'additional_instructions': None,
|
1103
|
'copyright': '2010-2023',
|
1104
|
'disclaimer': 'For research purposes only.',
|
1105
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1106
|
'instructions': 'Please complete the form below. Required questions are in '
|
1107
|
'bold. When all required questions are complete click SAVE '
|
1108
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1109
|
'additional questions may be required or some answers may '
|
1110
|
'need to be corrected.',
|
1111
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1112
|
'revision': ''}</pre></td>
|
1113
|
</tr>
|
1114
|
|
1115
|
<tr>
|
1116
|
<td>form_url</td>
|
1117
|
<td class="code"><pre>''</pre></td>
|
1118
|
</tr>
|
1119
|
|
1120
|
<tr>
|
1121
|
<td>request</td>
|
1122
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1123
|
</tr>
|
1124
|
|
1125
|
<tr>
|
1126
|
<td>self</td>
|
1127
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1128
|
</tr>
|
1129
|
|
1130
|
</tbody>
|
1131
|
</table>
|
1132
|
|
1133
|
</li>
|
1134
|
|
1135
|
|
1136
|
<li class="frame django">
|
1137
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py</code>, line 1653, in add_view
|
1138
|
|
1139
|
|
1140
|
<div class="context" id="c140358889846208">
|
1141
|
|
1142
|
<ol start="1646" class="pre-context" id="pre140358889846208" style="display: none;">
|
1143
|
|
1144
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre></pre></li>
|
1145
|
|
1146
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> return self.render_change_form(request, context, add=add, change=not add, obj=obj, form_url=form_url)</pre></li>
|
1147
|
|
1148
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre></pre></li>
|
1149
|
|
1150
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> def autocomplete_view(self, request):</pre></li>
|
1151
|
|
1152
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> return AutocompleteJsonView.as_view(model_admin=self)(request)</pre></li>
|
1153
|
|
1154
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre></pre></li>
|
1155
|
|
1156
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> def add_view(self, request, form_url='', extra_context=None):</pre></li>
|
1157
|
|
1158
|
</ol>
|
1159
|
|
1160
|
<ol start="1653" class="context-line">
|
1161
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> return self.changeform_view(request, None, form_url, extra_context)</pre> <span>…</span></li>
|
1162
|
</ol>
|
1163
|
|
1164
|
<ol start="1654" class="post-context" id="post140358889846208" style="display: none;">
|
1165
|
|
1166
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre></pre></li>
|
1167
|
|
1168
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> def change_view(self, request, object_id, form_url='', extra_context=None):</pre></li>
|
1169
|
|
1170
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> return self.changeform_view(request, object_id, form_url, extra_context)</pre></li>
|
1171
|
|
1172
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre></pre></li>
|
1173
|
|
1174
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> def _get_edited_object_pks(self, request, prefix):</pre></li>
|
1175
|
|
1176
|
<li onclick="toggle('pre140358889846208', 'post140358889846208')"><pre> """Return POST data values of list_editable primary keys."""</pre></li>
|
1177
|
|
1178
|
</ol>
|
1179
|
|
1180
|
</div>
|
1181
|
|
1182
|
|
1183
|
|
1184
|
<div class="commands">
|
1185
|
|
1186
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889846208')"><span>â–¶</span> Local vars</a>
|
1187
|
|
1188
|
</div>
|
1189
|
<table class="vars" id="v140358889846208" style="display: none;">
|
1190
|
<thead>
|
1191
|
<tr>
|
1192
|
<th>Variable</th>
|
1193
|
<th>Value</th>
|
1194
|
</tr>
|
1195
|
</thead>
|
1196
|
<tbody>
|
1197
|
|
1198
|
<tr>
|
1199
|
<td>extra_context</td>
|
1200
|
<td class="code"><pre>{'additional_instructions': None,
|
1201
|
'copyright': '2010-2023',
|
1202
|
'disclaimer': 'For research purposes only.',
|
1203
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1204
|
'instructions': 'Please complete the form below. Required questions are in '
|
1205
|
'bold. When all required questions are complete click SAVE '
|
1206
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1207
|
'additional questions may be required or some answers may '
|
1208
|
'need to be corrected.',
|
1209
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1210
|
'revision': ''}</pre></td>
|
1211
|
</tr>
|
1212
|
|
1213
|
<tr>
|
1214
|
<td>form_url</td>
|
1215
|
<td class="code"><pre>''</pre></td>
|
1216
|
</tr>
|
1217
|
|
1218
|
<tr>
|
1219
|
<td>request</td>
|
1220
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1221
|
</tr>
|
1222
|
|
1223
|
<tr>
|
1224
|
<td>self</td>
|
1225
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1226
|
</tr>
|
1227
|
|
1228
|
</tbody>
|
1229
|
</table>
|
1230
|
|
1231
|
</li>
|
1232
|
|
1233
|
|
1234
|
<li class="frame django">
|
1235
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py</code>, line 43, in _wrapper
|
1236
|
|
1237
|
|
1238
|
<div class="context" id="c140358891712640">
|
1239
|
|
1240
|
<ol start="36" class="pre-context" id="pre140358891712640" style="display: none;">
|
1241
|
|
1242
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # bound_method has the signature that 'decorator' expects i.e. no</pre></li>
|
1243
|
|
1244
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # 'self' argument, but it's a closure over self so it can call</pre></li>
|
1245
|
|
1246
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # 'func'. Also, wrap method.__get__() in a function because new</pre></li>
|
1247
|
|
1248
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # attributes can't be set on bound method objects, only on functions.</pre></li>
|
1249
|
|
1250
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> bound_method = partial(method.__get__(self, type(self)))</pre></li>
|
1251
|
|
1252
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> for dec in decorators:</pre></li>
|
1253
|
|
1254
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> bound_method = dec(bound_method)</pre></li>
|
1255
|
|
1256
|
</ol>
|
1257
|
|
1258
|
<ol start="43" class="context-line">
|
1259
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> return bound_method(*args, **kwargs)</pre> <span>…</span></li>
|
1260
|
</ol>
|
1261
|
|
1262
|
<ol start="44" class="post-context" id="post140358891712640" style="display: none;">
|
1263
|
|
1264
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre></pre></li>
|
1265
|
|
1266
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # Copy any attributes that a decorator adds to the function it decorates.</pre></li>
|
1267
|
|
1268
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> for dec in decorators:</pre></li>
|
1269
|
|
1270
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> _update_method_wrapper(_wrapper, dec)</pre></li>
|
1271
|
|
1272
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> # Preserve any existing attributes of 'method', including the name.</pre></li>
|
1273
|
|
1274
|
<li onclick="toggle('pre140358891712640', 'post140358891712640')"><pre> update_wrapper(_wrapper, method)</pre></li>
|
1275
|
|
1276
|
</ol>
|
1277
|
|
1278
|
</div>
|
1279
|
|
1280
|
|
1281
|
|
1282
|
<div class="commands">
|
1283
|
|
1284
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891712640')"><span>â–¶</span> Local vars</a>
|
1285
|
|
1286
|
</div>
|
1287
|
<table class="vars" id="v140358891712640" style="display: none;">
|
1288
|
<thead>
|
1289
|
<tr>
|
1290
|
<th>Variable</th>
|
1291
|
<th>Value</th>
|
1292
|
</tr>
|
1293
|
</thead>
|
1294
|
<tbody>
|
1295
|
|
1296
|
<tr>
|
1297
|
<td>args</td>
|
1298
|
<td class="code"><pre>(<WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='>,
|
1299
|
None,
|
1300
|
'',
|
1301
|
{'additional_instructions': None,
|
1302
|
'copyright': '2010-2023',
|
1303
|
'disclaimer': 'For research purposes only.',
|
1304
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1305
|
'instructions': 'Please complete the form below. Required questions are in '
|
1306
|
'bold. When all required questions are complete click SAVE '
|
1307
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1308
|
'additional questions may be required or some answers may '
|
1309
|
'need to be corrected.',
|
1310
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1311
|
'revision': ''})</pre></td>
|
1312
|
</tr>
|
1313
|
|
1314
|
<tr>
|
1315
|
<td>bound_method</td>
|
1316
|
<td class="code"><pre><function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._wrapped_view at 0x7fa7d9d92670></pre></td>
|
1317
|
</tr>
|
1318
|
|
1319
|
<tr>
|
1320
|
<td>dec</td>
|
1321
|
<td class="code"><pre><function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator at 0x7fa7f21b2160></pre></td>
|
1322
|
</tr>
|
1323
|
|
1324
|
<tr>
|
1325
|
<td>decorators</td>
|
1326
|
<td class="code"><pre>[<function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator at 0x7fa7f21b2160>]</pre></td>
|
1327
|
</tr>
|
1328
|
|
1329
|
<tr>
|
1330
|
<td>kwargs</td>
|
1331
|
<td class="code"><pre>{}</pre></td>
|
1332
|
</tr>
|
1333
|
|
1334
|
<tr>
|
1335
|
<td>method</td>
|
1336
|
<td class="code"><pre><function ModelAdmin.changeform_view at 0x7fa7f21b8430></pre></td>
|
1337
|
</tr>
|
1338
|
|
1339
|
<tr>
|
1340
|
<td>self</td>
|
1341
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1342
|
</tr>
|
1343
|
|
1344
|
</tbody>
|
1345
|
</table>
|
1346
|
|
1347
|
</li>
|
1348
|
|
1349
|
|
1350
|
<li class="frame django">
|
1351
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py</code>, line 130, in _wrapped_view
|
1352
|
|
1353
|
|
1354
|
<div class="context" id="c140358891875968">
|
1355
|
|
1356
|
<ol start="123" class="pre-context" id="pre140358891875968" style="display: none;">
|
1357
|
|
1358
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> if result is not None:</pre></li>
|
1359
|
|
1360
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> return result</pre></li>
|
1361
|
|
1362
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> if hasattr(middleware, 'process_view'):</pre></li>
|
1363
|
|
1364
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> result = middleware.process_view(request, view_func, args, kwargs)</pre></li>
|
1365
|
|
1366
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> if result is not None:</pre></li>
|
1367
|
|
1368
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> return result</pre></li>
|
1369
|
|
1370
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> try:</pre></li>
|
1371
|
|
1372
|
</ol>
|
1373
|
|
1374
|
<ol start="130" class="context-line">
|
1375
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> response = view_func(request, *args, **kwargs)</pre> <span>…</span></li>
|
1376
|
</ol>
|
1377
|
|
1378
|
<ol start="131" class="post-context" id="post140358891875968" style="display: none;">
|
1379
|
|
1380
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> except Exception as e:</pre></li>
|
1381
|
|
1382
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> if hasattr(middleware, 'process_exception'):</pre></li>
|
1383
|
|
1384
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> result = middleware.process_exception(request, e)</pre></li>
|
1385
|
|
1386
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> if result is not None:</pre></li>
|
1387
|
|
1388
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> return result</pre></li>
|
1389
|
|
1390
|
<li onclick="toggle('pre140358891875968', 'post140358891875968')"><pre> raise</pre></li>
|
1391
|
|
1392
|
</ol>
|
1393
|
|
1394
|
</div>
|
1395
|
|
1396
|
|
1397
|
|
1398
|
<div class="commands">
|
1399
|
|
1400
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891875968')"><span>â–¶</span> Local vars</a>
|
1401
|
|
1402
|
</div>
|
1403
|
<table class="vars" id="v140358891875968" style="display: none;">
|
1404
|
<thead>
|
1405
|
<tr>
|
1406
|
<th>Variable</th>
|
1407
|
<th>Value</th>
|
1408
|
</tr>
|
1409
|
</thead>
|
1410
|
<tbody>
|
1411
|
|
1412
|
<tr>
|
1413
|
<td>args</td>
|
1414
|
<td class="code"><pre>(None,
|
1415
|
'',
|
1416
|
{'additional_instructions': None,
|
1417
|
'copyright': '2010-2023',
|
1418
|
'disclaimer': 'For research purposes only.',
|
1419
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1420
|
'instructions': 'Please complete the form below. Required questions are in '
|
1421
|
'bold. When all required questions are complete click SAVE '
|
1422
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1423
|
'additional questions may be required or some answers may '
|
1424
|
'need to be corrected.',
|
1425
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1426
|
'revision': ''})</pre></td>
|
1427
|
</tr>
|
1428
|
|
1429
|
<tr>
|
1430
|
<td>kwargs</td>
|
1431
|
<td class="code"><pre>{}</pre></td>
|
1432
|
</tr>
|
1433
|
|
1434
|
<tr>
|
1435
|
<td>middleware</td>
|
1436
|
<td class="code"><pre><django.middleware.csrf.CsrfViewMiddleware object at 0x7fa7d9cf48e0></pre></td>
|
1437
|
</tr>
|
1438
|
|
1439
|
<tr>
|
1440
|
<td>request</td>
|
1441
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1442
|
</tr>
|
1443
|
|
1444
|
<tr>
|
1445
|
<td>result</td>
|
1446
|
<td class="code"><pre>None</pre></td>
|
1447
|
</tr>
|
1448
|
|
1449
|
<tr>
|
1450
|
<td>view_func</td>
|
1451
|
<td class="code"><pre>functools.partial(<bound method ModelAdmin.changeform_view of <pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0>>)</pre></td>
|
1452
|
</tr>
|
1453
|
|
1454
|
</tbody>
|
1455
|
</table>
|
1456
|
|
1457
|
</li>
|
1458
|
|
1459
|
|
1460
|
<li class="frame django">
|
1461
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py</code>, line 1534, in changeform_view
|
1462
|
|
1463
|
|
1464
|
<div class="context" id="c140358890355456">
|
1465
|
|
1466
|
<ol start="1527" class="pre-context" id="pre140358890355456" style="display: none;">
|
1467
|
|
1468
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> self.message_user(request, msg, messages.WARNING)</pre></li>
|
1469
|
|
1470
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> url = reverse('admin:index', current_app=self.admin_site.name)</pre></li>
|
1471
|
|
1472
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> return HttpResponseRedirect(url)</pre></li>
|
1473
|
|
1474
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre></pre></li>
|
1475
|
|
1476
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> @csrf_protect_m</pre></li>
|
1477
|
|
1478
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> def changeform_view(self, request, object_id=None, form_url='', extra_context=None):</pre></li>
|
1479
|
|
1480
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> with transaction.atomic(using=router.db_for_write(self.model)):</pre></li>
|
1481
|
|
1482
|
</ol>
|
1483
|
|
1484
|
<ol start="1534" class="context-line">
|
1485
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> return self._changeform_view(request, object_id, form_url, extra_context)</pre> <span>…</span></li>
|
1486
|
</ol>
|
1487
|
|
1488
|
<ol start="1535" class="post-context" id="post140358890355456" style="display: none;">
|
1489
|
|
1490
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre></pre></li>
|
1491
|
|
1492
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> def _changeform_view(self, request, object_id, form_url, extra_context):</pre></li>
|
1493
|
|
1494
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> to_field = request.POST.get(TO_FIELD_VAR, request.GET.get(TO_FIELD_VAR))</pre></li>
|
1495
|
|
1496
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> if to_field and not self.to_field_allowed(request, to_field):</pre></li>
|
1497
|
|
1498
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre> raise DisallowedModelAdminToField("The field %s cannot be referenced." % to_field)</pre></li>
|
1499
|
|
1500
|
<li onclick="toggle('pre140358890355456', 'post140358890355456')"><pre></pre></li>
|
1501
|
|
1502
|
</ol>
|
1503
|
|
1504
|
</div>
|
1505
|
|
1506
|
|
1507
|
|
1508
|
<div class="commands">
|
1509
|
|
1510
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890355456')"><span>â–¶</span> Local vars</a>
|
1511
|
|
1512
|
</div>
|
1513
|
<table class="vars" id="v140358890355456" style="display: none;">
|
1514
|
<thead>
|
1515
|
<tr>
|
1516
|
<th>Variable</th>
|
1517
|
<th>Value</th>
|
1518
|
</tr>
|
1519
|
</thead>
|
1520
|
<tbody>
|
1521
|
|
1522
|
<tr>
|
1523
|
<td>extra_context</td>
|
1524
|
<td class="code"><pre>{'additional_instructions': None,
|
1525
|
'copyright': '2010-2023',
|
1526
|
'disclaimer': 'For research purposes only.',
|
1527
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1528
|
'instructions': 'Please complete the form below. Required questions are in '
|
1529
|
'bold. When all required questions are complete click SAVE '
|
1530
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1531
|
'additional questions may be required or some answers may '
|
1532
|
'need to be corrected.',
|
1533
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1534
|
'revision': ''}</pre></td>
|
1535
|
</tr>
|
1536
|
|
1537
|
<tr>
|
1538
|
<td>form_url</td>
|
1539
|
<td class="code"><pre>''</pre></td>
|
1540
|
</tr>
|
1541
|
|
1542
|
<tr>
|
1543
|
<td>object_id</td>
|
1544
|
<td class="code"><pre>None</pre></td>
|
1545
|
</tr>
|
1546
|
|
1547
|
<tr>
|
1548
|
<td>request</td>
|
1549
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1550
|
</tr>
|
1551
|
|
1552
|
<tr>
|
1553
|
<td>self</td>
|
1554
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1555
|
</tr>
|
1556
|
|
1557
|
</tbody>
|
1558
|
</table>
|
1559
|
|
1560
|
</li>
|
1561
|
|
1562
|
|
1563
|
<li class="frame django">
|
1564
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py</code>, line 1580, in _changeform_view
|
1565
|
|
1566
|
|
1567
|
<div class="context" id="c140358890355968">
|
1568
|
|
1569
|
<ol start="1573" class="pre-context" id="pre140358890355968" style="display: none;">
|
1570
|
|
1571
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> form_validated = form.is_valid()</pre></li>
|
1572
|
|
1573
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> if form_validated:</pre></li>
|
1574
|
|
1575
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> new_object = self.save_form(request, form, change=not add)</pre></li>
|
1576
|
|
1577
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> else:</pre></li>
|
1578
|
|
1579
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> new_object = form.instance</pre></li>
|
1580
|
|
1581
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> formsets, inline_instances = self._create_formsets(request, new_object, change=not add)</pre></li>
|
1582
|
|
1583
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> if all_valid(formsets) and form_validated:</pre></li>
|
1584
|
|
1585
|
</ol>
|
1586
|
|
1587
|
<ol start="1580" class="context-line">
|
1588
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> self.save_model(request, new_object, form, not add)</pre> <span>…</span></li>
|
1589
|
</ol>
|
1590
|
|
1591
|
<ol start="1581" class="post-context" id="post140358890355968" style="display: none;">
|
1592
|
|
1593
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> self.save_related(request, form, formsets, not add)</pre></li>
|
1594
|
|
1595
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> change_message = self.construct_change_message(request, form, formsets, add)</pre></li>
|
1596
|
|
1597
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> if add:</pre></li>
|
1598
|
|
1599
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> self.log_addition(request, new_object, change_message)</pre></li>
|
1600
|
|
1601
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> return self.response_add(request, new_object)</pre></li>
|
1602
|
|
1603
|
<li onclick="toggle('pre140358890355968', 'post140358890355968')"><pre> else:</pre></li>
|
1604
|
|
1605
|
</ol>
|
1606
|
|
1607
|
</div>
|
1608
|
|
1609
|
|
1610
|
|
1611
|
<div class="commands">
|
1612
|
|
1613
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890355968')"><span>â–¶</span> Local vars</a>
|
1614
|
|
1615
|
</div>
|
1616
|
<table class="vars" id="v140358890355968" style="display: none;">
|
1617
|
<thead>
|
1618
|
<tr>
|
1619
|
<th>Variable</th>
|
1620
|
<th>Value</th>
|
1621
|
</tr>
|
1622
|
</thead>
|
1623
|
<tbody>
|
1624
|
|
1625
|
<tr>
|
1626
|
<td>ModelForm</td>
|
1627
|
<td class="code"><pre><class 'django.forms.widgets.PreFlourishSubjectScreeningForm'></pre></td>
|
1628
|
</tr>
|
1629
|
|
1630
|
<tr>
|
1631
|
<td>add</td>
|
1632
|
<td class="code"><pre>True</pre></td>
|
1633
|
</tr>
|
1634
|
|
1635
|
<tr>
|
1636
|
<td>extra_context</td>
|
1637
|
<td class="code"><pre>{'additional_instructions': None,
|
1638
|
'copyright': '2010-2023',
|
1639
|
'disclaimer': 'For research purposes only.',
|
1640
|
'institution': 'Botswana-Harvard AIDS Institute',
|
1641
|
'instructions': 'Please complete the form below. Required questions are in '
|
1642
|
'bold. When all required questions are complete click SAVE '
|
1643
|
'or, if available, SAVE NEXT. Based on your responses, '
|
1644
|
'additional questions may be required or some answers may '
|
1645
|
'need to be corrected.',
|
1646
|
'license': 'GNU GENERAL PUBLIC LICENSE Version 3',
|
1647
|
'revision': ''}</pre></td>
|
1648
|
</tr>
|
1649
|
|
1650
|
<tr>
|
1651
|
<td>fieldsets</td>
|
1652
|
<td class="code"><pre>[(None,
|
1653
|
{'fields': ('screening_identifier',
|
1654
|
'study_maternal_identifier',
|
1655
|
'report_datetime',
|
1656
|
'caregiver_age',
|
1657
|
'valid_identification',
|
1658
|
'has_child',
|
1659
|
'biological_mother',
|
1660
|
'biological_mother_in_bcpp',
|
1661
|
'willing_consent',
|
1662
|
'willing_assent',
|
1663
|
'study_interest',
|
1664
|
'remain_in_study')})]</pre></td>
|
1665
|
</tr>
|
1666
|
|
1667
|
<tr>
|
1668
|
<td>form</td>
|
1669
|
<td class="code"><pre><PreFlourishSubjectScreeningForm bound=True, valid=True, fields=(screening_identifier;study_maternal_identifier;report_datetime;caregiver_age;valid_identification;has_child;biological_mother;biological_mother_in_bcpp;willing_consent;willing_assent;study_interest;remain_in_study)></pre></td>
|
1670
|
</tr>
|
1671
|
|
1672
|
<tr>
|
1673
|
<td>form_url</td>
|
1674
|
<td class="code"><pre>''</pre></td>
|
1675
|
</tr>
|
1676
|
|
1677
|
<tr>
|
1678
|
<td>form_validated</td>
|
1679
|
<td class="code"><pre>True</pre></td>
|
1680
|
</tr>
|
1681
|
|
1682
|
<tr>
|
1683
|
<td>formsets</td>
|
1684
|
<td class="code"><pre>[]</pre></td>
|
1685
|
</tr>
|
1686
|
|
1687
|
<tr>
|
1688
|
<td>inline_instances</td>
|
1689
|
<td class="code"><pre>[]</pre></td>
|
1690
|
</tr>
|
1691
|
|
1692
|
<tr>
|
1693
|
<td>model</td>
|
1694
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
1695
|
</tr>
|
1696
|
|
1697
|
<tr>
|
1698
|
<td>new_object</td>
|
1699
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
1700
|
</tr>
|
1701
|
|
1702
|
<tr>
|
1703
|
<td>obj</td>
|
1704
|
<td class="code"><pre>None</pre></td>
|
1705
|
</tr>
|
1706
|
|
1707
|
<tr>
|
1708
|
<td>object_id</td>
|
1709
|
<td class="code"><pre>None</pre></td>
|
1710
|
</tr>
|
1711
|
|
1712
|
<tr>
|
1713
|
<td>opts</td>
|
1714
|
<td class="code"><pre><Options for PreFlourishSubjectScreening></pre></td>
|
1715
|
</tr>
|
1716
|
|
1717
|
<tr>
|
1718
|
<td>request</td>
|
1719
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1720
|
</tr>
|
1721
|
|
1722
|
<tr>
|
1723
|
<td>self</td>
|
1724
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1725
|
</tr>
|
1726
|
|
1727
|
<tr>
|
1728
|
<td>to_field</td>
|
1729
|
<td class="code"><pre>None</pre></td>
|
1730
|
</tr>
|
1731
|
|
1732
|
</tbody>
|
1733
|
</table>
|
1734
|
|
1735
|
</li>
|
1736
|
|
1737
|
|
1738
|
<li class="frame user">
|
1739
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_audit_fields_mixin.py</code>, line 21, in save_model
|
1740
|
|
1741
|
|
1742
|
<div class="context" id="c140358890353216">
|
1743
|
|
1744
|
<ol start="14" class="pre-context" id="pre140358890353216" style="display: none;">
|
1745
|
|
1746
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> def save_model(self, request, obj, form, change):</pre></li>
|
1747
|
|
1748
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> if not change:</pre></li>
|
1749
|
|
1750
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> obj.user_created = request.user.username</pre></li>
|
1751
|
|
1752
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> obj.created = get_utcnow()</pre></li>
|
1753
|
|
1754
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> else:</pre></li>
|
1755
|
|
1756
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> obj.user_modified = request.user.username</pre></li>
|
1757
|
|
1758
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> obj.modified = get_utcnow()</pre></li>
|
1759
|
|
1760
|
</ol>
|
1761
|
|
1762
|
<ol start="21" class="context-line">
|
1763
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> super().save_model(request, obj, form, change)</pre> <span>…</span></li>
|
1764
|
</ol>
|
1765
|
|
1766
|
<ol start="22" class="post-context" id="post140358890353216" style="display: none;">
|
1767
|
|
1768
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre></pre></li>
|
1769
|
|
1770
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> def get_list_filter(self, request):</pre></li>
|
1771
|
|
1772
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> columns = ['created', 'modified', 'user_created',</pre></li>
|
1773
|
|
1774
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> 'user_modified', 'hostname_created', 'hostname_modified']</pre></li>
|
1775
|
|
1776
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> self.list_filter = list(self.list_filter or [])</pre></li>
|
1777
|
|
1778
|
<li onclick="toggle('pre140358890353216', 'post140358890353216')"><pre> self.list_filter = self.list_filter + \</pre></li>
|
1779
|
|
1780
|
</ol>
|
1781
|
|
1782
|
</div>
|
1783
|
|
1784
|
|
1785
|
|
1786
|
<div class="commands">
|
1787
|
|
1788
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890353216')"><span>â–¶</span> Local vars</a>
|
1789
|
|
1790
|
</div>
|
1791
|
<table class="vars" id="v140358890353216" style="display: none;">
|
1792
|
<thead>
|
1793
|
<tr>
|
1794
|
<th>Variable</th>
|
1795
|
<th>Value</th>
|
1796
|
</tr>
|
1797
|
</thead>
|
1798
|
<tbody>
|
1799
|
|
1800
|
<tr>
|
1801
|
<td>__class__</td>
|
1802
|
<td class="code"><pre><class 'edc_model_admin.model_admin_audit_fields_mixin.ModelAdminAuditFieldsMixin'></pre></td>
|
1803
|
</tr>
|
1804
|
|
1805
|
<tr>
|
1806
|
<td>change</td>
|
1807
|
<td class="code"><pre>False</pre></td>
|
1808
|
</tr>
|
1809
|
|
1810
|
<tr>
|
1811
|
<td>form</td>
|
1812
|
<td class="code"><pre><PreFlourishSubjectScreeningForm bound=True, valid=True, fields=(screening_identifier;study_maternal_identifier;report_datetime;caregiver_age;valid_identification;has_child;biological_mother;biological_mother_in_bcpp;willing_consent;willing_assent;study_interest;remain_in_study)></pre></td>
|
1813
|
</tr>
|
1814
|
|
1815
|
<tr>
|
1816
|
<td>obj</td>
|
1817
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
1818
|
</tr>
|
1819
|
|
1820
|
<tr>
|
1821
|
<td>request</td>
|
1822
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1823
|
</tr>
|
1824
|
|
1825
|
<tr>
|
1826
|
<td>self</td>
|
1827
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1828
|
</tr>
|
1829
|
|
1830
|
</tbody>
|
1831
|
</table>
|
1832
|
|
1833
|
</li>
|
1834
|
|
1835
|
|
1836
|
<li class="frame user">
|
1837
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/sites/admin.py</code>, line 18, in save_model
|
1838
|
|
1839
|
|
1840
|
<div class="context" id="c140358890355776">
|
1841
|
|
1842
|
<ol start="11" class="pre-context" id="pre140358890355776" style="display: none;">
|
1843
|
|
1844
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> if 'django.contrib.sites' in settings.INSTALLED_APPS:</pre></li>
|
1845
|
|
1846
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> try:</pre></li>
|
1847
|
|
1848
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> REVIEWER_SITE_ID = settings.REVIEWER_SITE_ID</pre></li>
|
1849
|
|
1850
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> except AttributeError:</pre></li>
|
1851
|
|
1852
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> REVIEWER_SITE_ID = 0</pre></li>
|
1853
|
|
1854
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> if int(request.site.id) == int(REVIEWER_SITE_ID):</pre></li>
|
1855
|
|
1856
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> raise ReviewerSiteSaveError('Reviewers may not update data.')</pre></li>
|
1857
|
|
1858
|
</ol>
|
1859
|
|
1860
|
<ol start="18" class="context-line">
|
1861
|
<li onclick="toggle('pre140358890355776', 'post140358890355776')"><pre> super().save_model(request, obj, form, change)</pre> <span>…</span></li>
|
1862
|
</ol>
|
1863
|
|
1864
|
</div>
|
1865
|
|
1866
|
|
1867
|
|
1868
|
<div class="commands">
|
1869
|
|
1870
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890355776')"><span>â–¶</span> Local vars</a>
|
1871
|
|
1872
|
</div>
|
1873
|
<table class="vars" id="v140358890355776" style="display: none;">
|
1874
|
<thead>
|
1875
|
<tr>
|
1876
|
<th>Variable</th>
|
1877
|
<th>Value</th>
|
1878
|
</tr>
|
1879
|
</thead>
|
1880
|
<tbody>
|
1881
|
|
1882
|
<tr>
|
1883
|
<td>REVIEWER_SITE_ID</td>
|
1884
|
<td class="code"><pre>1</pre></td>
|
1885
|
</tr>
|
1886
|
|
1887
|
<tr>
|
1888
|
<td>__class__</td>
|
1889
|
<td class="code"><pre><class 'edc_base.sites.admin.ModelAdminSiteMixin'></pre></td>
|
1890
|
</tr>
|
1891
|
|
1892
|
<tr>
|
1893
|
<td>change</td>
|
1894
|
<td class="code"><pre>False</pre></td>
|
1895
|
</tr>
|
1896
|
|
1897
|
<tr>
|
1898
|
<td>form</td>
|
1899
|
<td class="code"><pre><PreFlourishSubjectScreeningForm bound=True, valid=True, fields=(screening_identifier;study_maternal_identifier;report_datetime;caregiver_age;valid_identification;has_child;biological_mother;biological_mother_in_bcpp;willing_consent;willing_assent;study_interest;remain_in_study)></pre></td>
|
1900
|
</tr>
|
1901
|
|
1902
|
<tr>
|
1903
|
<td>obj</td>
|
1904
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
1905
|
</tr>
|
1906
|
|
1907
|
<tr>
|
1908
|
<td>request</td>
|
1909
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
1910
|
</tr>
|
1911
|
|
1912
|
<tr>
|
1913
|
<td>self</td>
|
1914
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
1915
|
</tr>
|
1916
|
|
1917
|
</tbody>
|
1918
|
</table>
|
1919
|
|
1920
|
</li>
|
1921
|
|
1922
|
|
1923
|
<li class="frame django">
|
1924
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py</code>, line 1093, in save_model
|
1925
|
|
1926
|
|
1927
|
<div class="context" id="c140358894604928">
|
1928
|
|
1929
|
<ol start="1086" class="pre-context" id="pre140358894604928" style="display: none;">
|
1930
|
|
1931
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> """</pre></li>
|
1932
|
|
1933
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> return form.save(commit=False)</pre></li>
|
1934
|
|
1935
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre></pre></li>
|
1936
|
|
1937
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> def save_model(self, request, obj, form, change):</pre></li>
|
1938
|
|
1939
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> """</pre></li>
|
1940
|
|
1941
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> Given a model instance save it to the database.</pre></li>
|
1942
|
|
1943
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> """</pre></li>
|
1944
|
|
1945
|
</ol>
|
1946
|
|
1947
|
<ol start="1093" class="context-line">
|
1948
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> obj.save()</pre> <span>…</span></li>
|
1949
|
</ol>
|
1950
|
|
1951
|
<ol start="1094" class="post-context" id="post140358894604928" style="display: none;">
|
1952
|
|
1953
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre></pre></li>
|
1954
|
|
1955
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> def delete_model(self, request, obj):</pre></li>
|
1956
|
|
1957
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> """</pre></li>
|
1958
|
|
1959
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> Given a model instance delete it from the database.</pre></li>
|
1960
|
|
1961
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> """</pre></li>
|
1962
|
|
1963
|
<li onclick="toggle('pre140358894604928', 'post140358894604928')"><pre> obj.delete()</pre></li>
|
1964
|
|
1965
|
</ol>
|
1966
|
|
1967
|
</div>
|
1968
|
|
1969
|
|
1970
|
|
1971
|
<div class="commands">
|
1972
|
|
1973
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358894604928')"><span>â–¶</span> Local vars</a>
|
1974
|
|
1975
|
</div>
|
1976
|
<table class="vars" id="v140358894604928" style="display: none;">
|
1977
|
<thead>
|
1978
|
<tr>
|
1979
|
<th>Variable</th>
|
1980
|
<th>Value</th>
|
1981
|
</tr>
|
1982
|
</thead>
|
1983
|
<tbody>
|
1984
|
|
1985
|
<tr>
|
1986
|
<td>change</td>
|
1987
|
<td class="code"><pre>False</pre></td>
|
1988
|
</tr>
|
1989
|
|
1990
|
<tr>
|
1991
|
<td>form</td>
|
1992
|
<td class="code"><pre><PreFlourishSubjectScreeningForm bound=True, valid=True, fields=(screening_identifier;study_maternal_identifier;report_datetime;caregiver_age;valid_identification;has_child;biological_mother;biological_mother_in_bcpp;willing_consent;willing_assent;study_interest;remain_in_study)></pre></td>
|
1993
|
</tr>
|
1994
|
|
1995
|
<tr>
|
1996
|
<td>obj</td>
|
1997
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
1998
|
</tr>
|
1999
|
|
2000
|
<tr>
|
2001
|
<td>request</td>
|
2002
|
<td class="code"><pre><WSGIRequest: POST '/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='></pre></td>
|
2003
|
</tr>
|
2004
|
|
2005
|
<tr>
|
2006
|
<td>self</td>
|
2007
|
<td class="code"><pre><pre_flourish.admin.caregiver.pre_flourish_subject_screening_admin.PreFlourishSubjectScreeningAdmin object at 0x7fa7e4b0e4f0></pre></td>
|
2008
|
</tr>
|
2009
|
|
2010
|
</tbody>
|
2011
|
</table>
|
2012
|
|
2013
|
</li>
|
2014
|
|
2015
|
|
2016
|
<li class="frame user">
|
2017
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/pre_flourish_subject_screening.py</code>, line 123, in save
|
2018
|
|
2019
|
|
2020
|
<div class="context" id="c140358889865472">
|
2021
|
|
2022
|
<ol start="116" class="pre-context" id="pre140358889865472" style="display: none;">
|
2023
|
|
2024
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre></pre></li>
|
2025
|
|
2026
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> self.is_eligible = eligibility_criteria.is_eligible</pre></li>
|
2027
|
|
2028
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> self.ineligibility = eligibility_criteria.error_message</pre></li>
|
2029
|
|
2030
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre></pre></li>
|
2031
|
|
2032
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> if not self.screening_identifier:</pre></li>
|
2033
|
|
2034
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> self.screening_identifier = self.identifier_cls().identifier</pre></li>
|
2035
|
|
2036
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre></pre></li>
|
2037
|
|
2038
|
</ol>
|
2039
|
|
2040
|
<ol start="123" class="context-line">
|
2041
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> super(PreFlourishSubjectScreening, self).save(*args, **kwargs)</pre> <span>…</span></li>
|
2042
|
</ol>
|
2043
|
|
2044
|
<ol start="124" class="post-context" id="post140358889865472" style="display: none;">
|
2045
|
|
2046
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre></pre></li>
|
2047
|
|
2048
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> def natural_key(self):</pre></li>
|
2049
|
|
2050
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> return self.screening_identifier</pre></li>
|
2051
|
|
2052
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre></pre></li>
|
2053
|
|
2054
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> def get_search_slug_fields(self):</pre></li>
|
2055
|
|
2056
|
<li onclick="toggle('pre140358889865472', 'post140358889865472')"><pre> fields = super().get_search_slug_fields()</pre></li>
|
2057
|
|
2058
|
</ol>
|
2059
|
|
2060
|
</div>
|
2061
|
|
2062
|
|
2063
|
|
2064
|
<div class="commands">
|
2065
|
|
2066
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889865472')"><span>â–¶</span> Local vars</a>
|
2067
|
|
2068
|
</div>
|
2069
|
<table class="vars" id="v140358889865472" style="display: none;">
|
2070
|
<thead>
|
2071
|
<tr>
|
2072
|
<th>Variable</th>
|
2073
|
<th>Value</th>
|
2074
|
</tr>
|
2075
|
</thead>
|
2076
|
<tbody>
|
2077
|
|
2078
|
<tr>
|
2079
|
<td>__class__</td>
|
2080
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2081
|
</tr>
|
2082
|
|
2083
|
<tr>
|
2084
|
<td>args</td>
|
2085
|
<td class="code"><pre>()</pre></td>
|
2086
|
</tr>
|
2087
|
|
2088
|
<tr>
|
2089
|
<td>eligibility_criteria</td>
|
2090
|
<td class="code"><pre><pre_flourish.models.caregiver.eligibility.Eligibility object at 0x7fa7da102af0></pre></td>
|
2091
|
</tr>
|
2092
|
|
2093
|
<tr>
|
2094
|
<td>kwargs</td>
|
2095
|
<td class="code"><pre>{}</pre></td>
|
2096
|
</tr>
|
2097
|
|
2098
|
<tr>
|
2099
|
<td>self</td>
|
2100
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2101
|
</tr>
|
2102
|
|
2103
|
</tbody>
|
2104
|
</table>
|
2105
|
|
2106
|
</li>
|
2107
|
|
2108
|
|
2109
|
<li class="frame user">
|
2110
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/sites/site_model_mixin.py</code>, line 35, in save
|
2111
|
|
2112
|
|
2113
|
<div class="context" id="c140358889867840">
|
2114
|
|
2115
|
<ol start="28" class="pre-context" id="pre140358889867840" style="display: none;">
|
2116
|
|
2117
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> f'See Site configuration. Got {site.name}.')</pre></li>
|
2118
|
|
2119
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> else:</pre></li>
|
2120
|
|
2121
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> try:</pre></li>
|
2122
|
|
2123
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> if not self.site:</pre></li>
|
2124
|
|
2125
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> self.site = Site.objects.get_current()</pre></li>
|
2126
|
|
2127
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> except ObjectDoesNotExist:</pre></li>
|
2128
|
|
2129
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> self.site = Site.objects.get_current()</pre></li>
|
2130
|
|
2131
|
</ol>
|
2132
|
|
2133
|
<ol start="35" class="context-line">
|
2134
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> super().save(*args, **kwargs)</pre> <span>…</span></li>
|
2135
|
</ol>
|
2136
|
|
2137
|
<ol start="36" class="post-context" id="post140358889867840" style="display: none;">
|
2138
|
|
2139
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre></pre></li>
|
2140
|
|
2141
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> class Meta:</pre></li>
|
2142
|
|
2143
|
<li onclick="toggle('pre140358889867840', 'post140358889867840')"><pre> abstract = True</pre></li>
|
2144
|
|
2145
|
</ol>
|
2146
|
|
2147
|
</div>
|
2148
|
|
2149
|
|
2150
|
|
2151
|
<div class="commands">
|
2152
|
|
2153
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889867840')"><span>â–¶</span> Local vars</a>
|
2154
|
|
2155
|
</div>
|
2156
|
<table class="vars" id="v140358889867840" style="display: none;">
|
2157
|
<thead>
|
2158
|
<tr>
|
2159
|
<th>Variable</th>
|
2160
|
<th>Value</th>
|
2161
|
</tr>
|
2162
|
</thead>
|
2163
|
<tbody>
|
2164
|
|
2165
|
<tr>
|
2166
|
<td>REVIEWER_SITE_ID</td>
|
2167
|
<td class="code"><pre>1</pre></td>
|
2168
|
</tr>
|
2169
|
|
2170
|
<tr>
|
2171
|
<td>__class__</td>
|
2172
|
<td class="code"><pre><class 'edc_base.sites.site_model_mixin.SiteModelMixin'></pre></td>
|
2173
|
</tr>
|
2174
|
|
2175
|
<tr>
|
2176
|
<td>args</td>
|
2177
|
<td class="code"><pre>()</pre></td>
|
2178
|
</tr>
|
2179
|
|
2180
|
<tr>
|
2181
|
<td>kwargs</td>
|
2182
|
<td class="code"><pre>{}</pre></td>
|
2183
|
</tr>
|
2184
|
|
2185
|
<tr>
|
2186
|
<td>self</td>
|
2187
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2188
|
</tr>
|
2189
|
|
2190
|
<tr>
|
2191
|
<td>site</td>
|
2192
|
<td class="code"><pre><Site: flourish.bhp.org.bw></pre></td>
|
2193
|
</tr>
|
2194
|
|
2195
|
</tbody>
|
2196
|
</table>
|
2197
|
|
2198
|
</li>
|
2199
|
|
2200
|
|
2201
|
<li class="frame user">
|
2202
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_search/model_mixins.py</code>, line 61, in save
|
2203
|
|
2204
|
|
2205
|
<div class="context" id="c140358889865536">
|
2206
|
|
2207
|
<ol start="54" class="pre-context" id="pre140358889865536" style="display: none;">
|
2208
|
|
2209
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> help_text='a field used for quick search')</pre></li>
|
2210
|
|
2211
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre></pre></li>
|
2212
|
|
2213
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> def save(self, *args, **kwargs):</pre></li>
|
2214
|
|
2215
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> updater = self.search_slug_updater_cls(</pre></li>
|
2216
|
|
2217
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> fields=self.get_search_slug_fields(), model_obj=self)</pre></li>
|
2218
|
|
2219
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> self.search_slug_warning = updater.warning</pre></li>
|
2220
|
|
2221
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> self.slug = updater.slug</pre></li>
|
2222
|
|
2223
|
</ol>
|
2224
|
|
2225
|
<ol start="61" class="context-line">
|
2226
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> super().save(*args, **kwargs)</pre> <span>…</span></li>
|
2227
|
</ol>
|
2228
|
|
2229
|
<ol start="62" class="post-context" id="post140358889865536" style="display: none;">
|
2230
|
|
2231
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre></pre></li>
|
2232
|
|
2233
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> class Meta:</pre></li>
|
2234
|
|
2235
|
<li onclick="toggle('pre140358889865536', 'post140358889865536')"><pre> abstract = True</pre></li>
|
2236
|
|
2237
|
</ol>
|
2238
|
|
2239
|
</div>
|
2240
|
|
2241
|
|
2242
|
|
2243
|
<div class="commands">
|
2244
|
|
2245
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889865536')"><span>â–¶</span> Local vars</a>
|
2246
|
|
2247
|
</div>
|
2248
|
<table class="vars" id="v140358889865536" style="display: none;">
|
2249
|
<thead>
|
2250
|
<tr>
|
2251
|
<th>Variable</th>
|
2252
|
<th>Value</th>
|
2253
|
</tr>
|
2254
|
</thead>
|
2255
|
<tbody>
|
2256
|
|
2257
|
<tr>
|
2258
|
<td>__class__</td>
|
2259
|
<td class="code"><pre><class 'edc_search.model_mixins.SearchSlugModelMixin'></pre></td>
|
2260
|
</tr>
|
2261
|
|
2262
|
<tr>
|
2263
|
<td>args</td>
|
2264
|
<td class="code"><pre>()</pre></td>
|
2265
|
</tr>
|
2266
|
|
2267
|
<tr>
|
2268
|
<td>kwargs</td>
|
2269
|
<td class="code"><pre>{}</pre></td>
|
2270
|
</tr>
|
2271
|
|
2272
|
<tr>
|
2273
|
<td>self</td>
|
2274
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2275
|
</tr>
|
2276
|
|
2277
|
<tr>
|
2278
|
<td>updater</td>
|
2279
|
<td class="code"><pre><edc_search.model_mixins.SearchSlugUpdater object at 0x7fa7d9c80550></pre></td>
|
2280
|
</tr>
|
2281
|
|
2282
|
</tbody>
|
2283
|
</table>
|
2284
|
|
2285
|
</li>
|
2286
|
|
2287
|
|
2288
|
<li class="frame user">
|
2289
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_device/model_mixins.py</code>, line 36, in save
|
2290
|
|
2291
|
|
2292
|
<div class="context" id="c140358891220736">
|
2293
|
|
2294
|
<ol start="29" class="pre-context" id="pre140358891220736" style="display: none;">
|
2295
|
|
2296
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> self.device_modified = app_config.device_id</pre></li>
|
2297
|
|
2298
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> if self.check_device_permissions:</pre></li>
|
2299
|
|
2300
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> try:</pre></li>
|
2301
|
|
2302
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> self._meta.device_permissions.check(self)</pre></li>
|
2303
|
|
2304
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> except AttributeError:</pre></li>
|
2305
|
|
2306
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> pass</pre></li>
|
2307
|
|
2308
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> app_config.device_permissions.check(self)</pre></li>
|
2309
|
|
2310
|
</ol>
|
2311
|
|
2312
|
<ol start="36" class="context-line">
|
2313
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> super().save(*args, **kwargs)</pre> <span>…</span></li>
|
2314
|
</ol>
|
2315
|
|
2316
|
<ol start="37" class="post-context" id="post140358891220736" style="display: none;">
|
2317
|
|
2318
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre></pre></li>
|
2319
|
|
2320
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> class Meta:</pre></li>
|
2321
|
|
2322
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> abstract = True</pre></li>
|
2323
|
|
2324
|
<li onclick="toggle('pre140358891220736', 'post140358891220736')"><pre> device_permissions = DevicePermissions()</pre></li>
|
2325
|
|
2326
|
</ol>
|
2327
|
|
2328
|
</div>
|
2329
|
|
2330
|
|
2331
|
|
2332
|
<div class="commands">
|
2333
|
|
2334
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891220736')"><span>â–¶</span> Local vars</a>
|
2335
|
|
2336
|
</div>
|
2337
|
<table class="vars" id="v140358891220736" style="display: none;">
|
2338
|
<thead>
|
2339
|
<tr>
|
2340
|
<th>Variable</th>
|
2341
|
<th>Value</th>
|
2342
|
</tr>
|
2343
|
</thead>
|
2344
|
<tbody>
|
2345
|
|
2346
|
<tr>
|
2347
|
<td>__class__</td>
|
2348
|
<td class="code"><pre><class 'edc_device.model_mixins.DeviceModelMixin'></pre></td>
|
2349
|
</tr>
|
2350
|
|
2351
|
<tr>
|
2352
|
<td>app_config</td>
|
2353
|
<td class="code"><pre><AppConfig: edc_device></pre></td>
|
2354
|
</tr>
|
2355
|
|
2356
|
<tr>
|
2357
|
<td>args</td>
|
2358
|
<td class="code"><pre>()</pre></td>
|
2359
|
</tr>
|
2360
|
|
2361
|
<tr>
|
2362
|
<td>kwargs</td>
|
2363
|
<td class="code"><pre>{}</pre></td>
|
2364
|
</tr>
|
2365
|
|
2366
|
<tr>
|
2367
|
<td>self</td>
|
2368
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2369
|
</tr>
|
2370
|
|
2371
|
</tbody>
|
2372
|
</table>
|
2373
|
|
2374
|
</li>
|
2375
|
|
2376
|
|
2377
|
<li class="frame user">
|
2378
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/model_mixins/base_model.py</code>, line 69, in save
|
2379
|
|
2380
|
|
2381
|
<div class="context" id="c140358891434560">
|
2382
|
|
2383
|
<ol start="62" class="pre-context" id="pre140358891434560" style="display: none;">
|
2384
|
|
2385
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> except TypeError:</pre></li>
|
2386
|
|
2387
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> pass</pre></li>
|
2388
|
|
2389
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> if not self.id:</pre></li>
|
2390
|
|
2391
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> self.created = get_utcnow()</pre></li>
|
2392
|
|
2393
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> self.modified = get_utcnow()</pre></li>
|
2394
|
|
2395
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> self.hostname_created = self.hostname_created[:60]</pre></li>
|
2396
|
|
2397
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> self.hostname_modified = self.hostname_modified[:50]</pre></li>
|
2398
|
|
2399
|
</ol>
|
2400
|
|
2401
|
<ol start="69" class="context-line">
|
2402
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> super().save(*args, **kwargs)</pre> <span>…</span></li>
|
2403
|
</ol>
|
2404
|
|
2405
|
<ol start="70" class="post-context" id="post140358891434560" style="display: none;">
|
2406
|
|
2407
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre></pre></li>
|
2408
|
|
2409
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> @property</pre></li>
|
2410
|
|
2411
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> def verbose_name(self):</pre></li>
|
2412
|
|
2413
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> return self._meta.verbose_name</pre></li>
|
2414
|
|
2415
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre></pre></li>
|
2416
|
|
2417
|
<li onclick="toggle('pre140358891434560', 'post140358891434560')"><pre> class Meta:</pre></li>
|
2418
|
|
2419
|
</ol>
|
2420
|
|
2421
|
</div>
|
2422
|
|
2423
|
|
2424
|
|
2425
|
<div class="commands">
|
2426
|
|
2427
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891434560')"><span>â–¶</span> Local vars</a>
|
2428
|
|
2429
|
</div>
|
2430
|
<table class="vars" id="v140358891434560" style="display: none;">
|
2431
|
<thead>
|
2432
|
<tr>
|
2433
|
<th>Variable</th>
|
2434
|
<th>Value</th>
|
2435
|
</tr>
|
2436
|
</thead>
|
2437
|
<tbody>
|
2438
|
|
2439
|
<tr>
|
2440
|
<td>__class__</td>
|
2441
|
<td class="code"><pre><class 'edc_base.model_mixins.base_model.BaseModel'></pre></td>
|
2442
|
</tr>
|
2443
|
|
2444
|
<tr>
|
2445
|
<td>args</td>
|
2446
|
<td class="code"><pre>()</pre></td>
|
2447
|
</tr>
|
2448
|
|
2449
|
<tr>
|
2450
|
<td>kwargs</td>
|
2451
|
<td class="code"><pre>{}</pre></td>
|
2452
|
</tr>
|
2453
|
|
2454
|
<tr>
|
2455
|
<td>self</td>
|
2456
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2457
|
</tr>
|
2458
|
|
2459
|
</tbody>
|
2460
|
</table>
|
2461
|
|
2462
|
</li>
|
2463
|
|
2464
|
|
2465
|
<li class="frame django">
|
2466
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/db/models/base.py</code>, line 753, in save
|
2467
|
|
2468
|
|
2469
|
<div class="context" id="c140358889844864">
|
2470
|
|
2471
|
<ol start="746" class="pre-context" id="pre140358889844864" style="display: none;">
|
2472
|
|
2473
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> for field in self._meta.concrete_fields:</pre></li>
|
2474
|
|
2475
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> if not field.primary_key and not hasattr(field, 'through'):</pre></li>
|
2476
|
|
2477
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> field_names.add(field.attname)</pre></li>
|
2478
|
|
2479
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> loaded_fields = field_names.difference(deferred_fields)</pre></li>
|
2480
|
|
2481
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> if loaded_fields:</pre></li>
|
2482
|
|
2483
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> update_fields = frozenset(loaded_fields)</pre></li>
|
2484
|
|
2485
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre></pre></li>
|
2486
|
|
2487
|
</ol>
|
2488
|
|
2489
|
<ol start="753" class="context-line">
|
2490
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> self.save_base(using=using, force_insert=force_insert,</pre> <span>…</span></li>
|
2491
|
</ol>
|
2492
|
|
2493
|
<ol start="754" class="post-context" id="post140358889844864" style="display: none;">
|
2494
|
|
2495
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> force_update=force_update, update_fields=update_fields)</pre></li>
|
2496
|
|
2497
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> save.alters_data = True</pre></li>
|
2498
|
|
2499
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre></pre></li>
|
2500
|
|
2501
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> def save_base(self, raw=False, force_insert=False,</pre></li>
|
2502
|
|
2503
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> force_update=False, using=None, update_fields=None):</pre></li>
|
2504
|
|
2505
|
<li onclick="toggle('pre140358889844864', 'post140358889844864')"><pre> """</pre></li>
|
2506
|
|
2507
|
</ol>
|
2508
|
|
2509
|
</div>
|
2510
|
|
2511
|
|
2512
|
|
2513
|
<div class="commands">
|
2514
|
|
2515
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889844864')"><span>â–¶</span> Local vars</a>
|
2516
|
|
2517
|
</div>
|
2518
|
<table class="vars" id="v140358889844864" style="display: none;">
|
2519
|
<thead>
|
2520
|
<tr>
|
2521
|
<th>Variable</th>
|
2522
|
<th>Value</th>
|
2523
|
</tr>
|
2524
|
</thead>
|
2525
|
<tbody>
|
2526
|
|
2527
|
<tr>
|
2528
|
<td>deferred_fields</td>
|
2529
|
<td class="code"><pre>set()</pre></td>
|
2530
|
</tr>
|
2531
|
|
2532
|
<tr>
|
2533
|
<td>field</td>
|
2534
|
<td class="code"><pre><django.db.models.fields.BooleanField: has_passed_consent></pre></td>
|
2535
|
</tr>
|
2536
|
|
2537
|
<tr>
|
2538
|
<td>force_insert</td>
|
2539
|
<td class="code"><pre>False</pre></td>
|
2540
|
</tr>
|
2541
|
|
2542
|
<tr>
|
2543
|
<td>force_update</td>
|
2544
|
<td class="code"><pre>False</pre></td>
|
2545
|
</tr>
|
2546
|
|
2547
|
<tr>
|
2548
|
<td>obj</td>
|
2549
|
<td class="code"><pre><Site: flourish.bhp.org.bw></pre></td>
|
2550
|
</tr>
|
2551
|
|
2552
|
<tr>
|
2553
|
<td>self</td>
|
2554
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2555
|
</tr>
|
2556
|
|
2557
|
<tr>
|
2558
|
<td>update_fields</td>
|
2559
|
<td class="code"><pre>None</pre></td>
|
2560
|
</tr>
|
2561
|
|
2562
|
<tr>
|
2563
|
<td>using</td>
|
2564
|
<td class="code"><pre>'default'</pre></td>
|
2565
|
</tr>
|
2566
|
|
2567
|
</tbody>
|
2568
|
</table>
|
2569
|
|
2570
|
</li>
|
2571
|
|
2572
|
|
2573
|
<li class="frame django">
|
2574
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/db/models/base.py</code>, line 801, in save_base
|
2575
|
|
2576
|
|
2577
|
<div class="context" id="c140358889848640">
|
2578
|
|
2579
|
<ol start="794" class="pre-context" id="pre140358889848640" style="display: none;">
|
2580
|
|
2581
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> # Store the database on which the object was saved</pre></li>
|
2582
|
|
2583
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> self._state.db = using</pre></li>
|
2584
|
|
2585
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> # Once saved, this is no longer a to-be-added instance.</pre></li>
|
2586
|
|
2587
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> self._state.adding = False</pre></li>
|
2588
|
|
2589
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre></pre></li>
|
2590
|
|
2591
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> # Signal that the save is complete</pre></li>
|
2592
|
|
2593
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> if not meta.auto_created:</pre></li>
|
2594
|
|
2595
|
</ol>
|
2596
|
|
2597
|
<ol start="801" class="context-line">
|
2598
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> post_save.send(</pre> <span>…</span></li>
|
2599
|
</ol>
|
2600
|
|
2601
|
<ol start="802" class="post-context" id="post140358889848640" style="display: none;">
|
2602
|
|
2603
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> sender=origin, instance=self, created=(not updated),</pre></li>
|
2604
|
|
2605
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> update_fields=update_fields, raw=raw, using=using,</pre></li>
|
2606
|
|
2607
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> )</pre></li>
|
2608
|
|
2609
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre></pre></li>
|
2610
|
|
2611
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre> save_base.alters_data = True</pre></li>
|
2612
|
|
2613
|
<li onclick="toggle('pre140358889848640', 'post140358889848640')"><pre></pre></li>
|
2614
|
|
2615
|
</ol>
|
2616
|
|
2617
|
</div>
|
2618
|
|
2619
|
|
2620
|
|
2621
|
<div class="commands">
|
2622
|
|
2623
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889848640')"><span>â–¶</span> Local vars</a>
|
2624
|
|
2625
|
</div>
|
2626
|
<table class="vars" id="v140358889848640" style="display: none;">
|
2627
|
<thead>
|
2628
|
<tr>
|
2629
|
<th>Variable</th>
|
2630
|
<th>Value</th>
|
2631
|
</tr>
|
2632
|
</thead>
|
2633
|
<tbody>
|
2634
|
|
2635
|
<tr>
|
2636
|
<td>cls</td>
|
2637
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2638
|
</tr>
|
2639
|
|
2640
|
<tr>
|
2641
|
<td>context_manager</td>
|
2642
|
<td class="code"><pre><contextlib._GeneratorContextManager object at 0x7fa7d9c65bb0></pre></td>
|
2643
|
</tr>
|
2644
|
|
2645
|
<tr>
|
2646
|
<td>force_insert</td>
|
2647
|
<td class="code"><pre>False</pre></td>
|
2648
|
</tr>
|
2649
|
|
2650
|
<tr>
|
2651
|
<td>force_update</td>
|
2652
|
<td class="code"><pre>False</pre></td>
|
2653
|
</tr>
|
2654
|
|
2655
|
<tr>
|
2656
|
<td>meta</td>
|
2657
|
<td class="code"><pre><Options for PreFlourishSubjectScreening></pre></td>
|
2658
|
</tr>
|
2659
|
|
2660
|
<tr>
|
2661
|
<td>origin</td>
|
2662
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2663
|
</tr>
|
2664
|
|
2665
|
<tr>
|
2666
|
<td>parent_inserted</td>
|
2667
|
<td class="code"><pre>False</pre></td>
|
2668
|
</tr>
|
2669
|
|
2670
|
<tr>
|
2671
|
<td>raw</td>
|
2672
|
<td class="code"><pre>False</pre></td>
|
2673
|
</tr>
|
2674
|
|
2675
|
<tr>
|
2676
|
<td>self</td>
|
2677
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2678
|
</tr>
|
2679
|
|
2680
|
<tr>
|
2681
|
<td>update_fields</td>
|
2682
|
<td class="code"><pre>None</pre></td>
|
2683
|
</tr>
|
2684
|
|
2685
|
<tr>
|
2686
|
<td>updated</td>
|
2687
|
<td class="code"><pre>False</pre></td>
|
2688
|
</tr>
|
2689
|
|
2690
|
<tr>
|
2691
|
<td>using</td>
|
2692
|
<td class="code"><pre>'default'</pre></td>
|
2693
|
</tr>
|
2694
|
|
2695
|
</tbody>
|
2696
|
</table>
|
2697
|
|
2698
|
</li>
|
2699
|
|
2700
|
|
2701
|
<li class="frame django">
|
2702
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/dispatch/dispatcher.py</code>, line 177, in send
|
2703
|
|
2704
|
|
2705
|
<div class="context" id="c140358890734528">
|
2706
|
|
2707
|
<ol start="170" class="pre-context" id="pre140358890734528" style="display: none;">
|
2708
|
|
2709
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> Named arguments which will be passed to receivers.</pre></li>
|
2710
|
|
2711
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre></pre></li>
|
2712
|
|
2713
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> Return a list of tuple pairs [(receiver, response), ... ].</pre></li>
|
2714
|
|
2715
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> """</pre></li>
|
2716
|
|
2717
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS:</pre></li>
|
2718
|
|
2719
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> return []</pre></li>
|
2720
|
|
2721
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre></pre></li>
|
2722
|
|
2723
|
</ol>
|
2724
|
|
2725
|
<ol start="177" class="context-line">
|
2726
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> return [</pre> <span>…</span></li>
|
2727
|
</ol>
|
2728
|
|
2729
|
<ol start="178" class="post-context" id="post140358890734528" style="display: none;">
|
2730
|
|
2731
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> (receiver, receiver(signal=self, sender=sender, **named))</pre></li>
|
2732
|
|
2733
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> for receiver in self._live_receivers(sender)</pre></li>
|
2734
|
|
2735
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> ]</pre></li>
|
2736
|
|
2737
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre></pre></li>
|
2738
|
|
2739
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> def send_robust(self, sender, **named):</pre></li>
|
2740
|
|
2741
|
<li onclick="toggle('pre140358890734528', 'post140358890734528')"><pre> """</pre></li>
|
2742
|
|
2743
|
</ol>
|
2744
|
|
2745
|
</div>
|
2746
|
|
2747
|
|
2748
|
|
2749
|
<div class="commands">
|
2750
|
|
2751
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890734528')"><span>â–¶</span> Local vars</a>
|
2752
|
|
2753
|
</div>
|
2754
|
<table class="vars" id="v140358890734528" style="display: none;">
|
2755
|
<thead>
|
2756
|
<tr>
|
2757
|
<th>Variable</th>
|
2758
|
<th>Value</th>
|
2759
|
</tr>
|
2760
|
</thead>
|
2761
|
<tbody>
|
2762
|
|
2763
|
<tr>
|
2764
|
<td>named</td>
|
2765
|
<td class="code"><pre>{'created': True,
|
2766
|
'instance': <PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)>,
|
2767
|
'raw': False,
|
2768
|
'update_fields': None,
|
2769
|
'using': 'default'}</pre></td>
|
2770
|
</tr>
|
2771
|
|
2772
|
<tr>
|
2773
|
<td>self</td>
|
2774
|
<td class="code"><pre><django.db.models.signals.ModelSignal object at 0x7fa7f2b25910></pre></td>
|
2775
|
</tr>
|
2776
|
|
2777
|
<tr>
|
2778
|
<td>sender</td>
|
2779
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2780
|
</tr>
|
2781
|
|
2782
|
</tbody>
|
2783
|
</table>
|
2784
|
|
2785
|
</li>
|
2786
|
|
2787
|
|
2788
|
<li class="frame django">
|
2789
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/dispatch/dispatcher.py</code>, line 178, in <listcomp>
|
2790
|
|
2791
|
|
2792
|
<div class="context" id="c140358890736704">
|
2793
|
|
2794
|
<ol start="171" class="pre-context" id="pre140358890736704" style="display: none;">
|
2795
|
|
2796
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre></pre></li>
|
2797
|
|
2798
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> Return a list of tuple pairs [(receiver, response), ... ].</pre></li>
|
2799
|
|
2800
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> """</pre></li>
|
2801
|
|
2802
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS:</pre></li>
|
2803
|
|
2804
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> return []</pre></li>
|
2805
|
|
2806
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre></pre></li>
|
2807
|
|
2808
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> return [</pre></li>
|
2809
|
|
2810
|
</ol>
|
2811
|
|
2812
|
<ol start="178" class="context-line">
|
2813
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> (receiver, receiver(signal=self, sender=sender, **named))</pre> <span>…</span></li>
|
2814
|
</ol>
|
2815
|
|
2816
|
<ol start="179" class="post-context" id="post140358890736704" style="display: none;">
|
2817
|
|
2818
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> for receiver in self._live_receivers(sender)</pre></li>
|
2819
|
|
2820
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> ]</pre></li>
|
2821
|
|
2822
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre></pre></li>
|
2823
|
|
2824
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> def send_robust(self, sender, **named):</pre></li>
|
2825
|
|
2826
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> """</pre></li>
|
2827
|
|
2828
|
<li onclick="toggle('pre140358890736704', 'post140358890736704')"><pre> Send signal from sender to all connected receivers catching errors.</pre></li>
|
2829
|
|
2830
|
</ol>
|
2831
|
|
2832
|
</div>
|
2833
|
|
2834
|
|
2835
|
|
2836
|
<div class="commands">
|
2837
|
|
2838
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358890736704')"><span>â–¶</span> Local vars</a>
|
2839
|
|
2840
|
</div>
|
2841
|
<table class="vars" id="v140358890736704" style="display: none;">
|
2842
|
<thead>
|
2843
|
<tr>
|
2844
|
<th>Variable</th>
|
2845
|
<th>Value</th>
|
2846
|
</tr>
|
2847
|
</thead>
|
2848
|
<tbody>
|
2849
|
|
2850
|
<tr>
|
2851
|
<td>.0</td>
|
2852
|
<td class="code"><pre><list_iterator object at 0x7fa7d9c80f40></pre></td>
|
2853
|
</tr>
|
2854
|
|
2855
|
<tr>
|
2856
|
<td>named</td>
|
2857
|
<td class="code"><pre>{'created': True,
|
2858
|
'instance': <PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)>,
|
2859
|
'raw': False,
|
2860
|
'update_fields': None,
|
2861
|
'using': 'default'}</pre></td>
|
2862
|
</tr>
|
2863
|
|
2864
|
<tr>
|
2865
|
<td>receiver</td>
|
2866
|
<td class="code"><pre><function pre_flourish_screening_on_post_save at 0x7fa7e5cc9670></pre></td>
|
2867
|
</tr>
|
2868
|
|
2869
|
<tr>
|
2870
|
<td>self</td>
|
2871
|
<td class="code"><pre><django.db.models.signals.ModelSignal object at 0x7fa7f2b25910></pre></td>
|
2872
|
</tr>
|
2873
|
|
2874
|
<tr>
|
2875
|
<td>sender</td>
|
2876
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2877
|
</tr>
|
2878
|
|
2879
|
</tbody>
|
2880
|
</table>
|
2881
|
|
2882
|
</li>
|
2883
|
|
2884
|
|
2885
|
<li class="frame user">
|
2886
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/signals.py</code>, line 63, in pre_flourish_screening_on_post_save
|
2887
|
|
2888
|
|
2889
|
<div class="context" id="c140358891716480">
|
2890
|
|
2891
|
<ol start="56" class="pre-context" id="pre140358891716480" style="display: none;">
|
2892
|
|
2893
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre></pre></li>
|
2894
|
|
2895
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre>@receiver(post_save, weak=False, sender=PreFlourishSubjectScreening,</pre></li>
|
2896
|
|
2897
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> dispatch_uid='pre_flourish_screening_on_post_save')</pre></li>
|
2898
|
|
2899
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre>def pre_flourish_screening_on_post_save(sender, instance, raw, created, **kwargs):</pre></li>
|
2900
|
|
2901
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> """ Updates screening identifier to locator model once successfully screened.</pre></li>
|
2902
|
|
2903
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> """</pre></li>
|
2904
|
|
2905
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> if not raw and instance.is_eligible:</pre></li>
|
2906
|
|
2907
|
</ol>
|
2908
|
|
2909
|
<ol start="63" class="context-line">
|
2910
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> update_locator(screening=instance)</pre> <span>…</span></li>
|
2911
|
</ol>
|
2912
|
|
2913
|
<ol start="64" class="post-context" id="post140358891716480" style="display: none;">
|
2914
|
|
2915
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre></pre></li>
|
2916
|
|
2917
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre></pre></li>
|
2918
|
|
2919
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre>@receiver(post_save, weak=False, sender=PreFlourishChildAssent,</pre></li>
|
2920
|
|
2921
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> dispatch_uid='pre_flourish_assent_post_save')</pre></li>
|
2922
|
|
2923
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre>def pre_flourish_assent_post_save(sender, instance, raw, created, **kwargs):</pre></li>
|
2924
|
|
2925
|
<li onclick="toggle('pre140358891716480', 'post140358891716480')"><pre> if not raw:</pre></li>
|
2926
|
|
2927
|
</ol>
|
2928
|
|
2929
|
</div>
|
2930
|
|
2931
|
|
2932
|
|
2933
|
<div class="commands">
|
2934
|
|
2935
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358891716480')"><span>â–¶</span> Local vars</a>
|
2936
|
|
2937
|
</div>
|
2938
|
<table class="vars" id="v140358891716480" style="display: none;">
|
2939
|
<thead>
|
2940
|
<tr>
|
2941
|
<th>Variable</th>
|
2942
|
<th>Value</th>
|
2943
|
</tr>
|
2944
|
</thead>
|
2945
|
<tbody>
|
2946
|
|
2947
|
<tr>
|
2948
|
<td>created</td>
|
2949
|
<td class="code"><pre>True</pre></td>
|
2950
|
</tr>
|
2951
|
|
2952
|
<tr>
|
2953
|
<td>instance</td>
|
2954
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
2955
|
</tr>
|
2956
|
|
2957
|
<tr>
|
2958
|
<td>kwargs</td>
|
2959
|
<td class="code"><pre>{'signal': <django.db.models.signals.ModelSignal object at 0x7fa7f2b25910>,
|
2960
|
'update_fields': None,
|
2961
|
'using': 'default'}</pre></td>
|
2962
|
</tr>
|
2963
|
|
2964
|
<tr>
|
2965
|
<td>raw</td>
|
2966
|
<td class="code"><pre>False</pre></td>
|
2967
|
</tr>
|
2968
|
|
2969
|
<tr>
|
2970
|
<td>sender</td>
|
2971
|
<td class="code"><pre><class 'pre_flourish.models.caregiver.pre_flourish_subject_screening.PreFlourishSubjectScreening'></pre></td>
|
2972
|
</tr>
|
2973
|
|
2974
|
</tbody>
|
2975
|
</table>
|
2976
|
|
2977
|
</li>
|
2978
|
|
2979
|
|
2980
|
<li class="frame user">
|
2981
|
<code class="fname">/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/signals.py</code>, line 26, in update_locator
|
2982
|
|
2983
|
|
2984
|
<div class="context" id="c140358889974464">
|
2985
|
|
2986
|
<ol start="19" class="pre-context" id="pre140358889974464" style="display: none;">
|
2987
|
|
2988
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> try:</pre></li>
|
2989
|
|
2990
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> locator_obj = locator_cls.objects.get(</pre></li>
|
2991
|
|
2992
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> study_maternal_identifier=screening.study_maternal_identifier</pre></li>
|
2993
|
|
2994
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> )</pre></li>
|
2995
|
|
2996
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> except locator_cls.DoesNotExist:</pre></li>
|
2997
|
|
2998
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> pass</pre></li>
|
2999
|
|
3000
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> else:</pre></li>
|
3001
|
|
3002
|
</ol>
|
3003
|
|
3004
|
<ol start="26" class="context-line">
|
3005
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> locator_obj.subject_identifier = consent.subject_identifier</pre> <span>…</span></li>
|
3006
|
</ol>
|
3007
|
|
3008
|
<ol start="27" class="post-context" id="post140358889974464" style="display: none;">
|
3009
|
|
3010
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> locator_obj.screening_identifier = screening.screening_identifier</pre></li>
|
3011
|
|
3012
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> report = consent if consent.report_datetime else screening</pre></li>
|
3013
|
|
3014
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> locator_obj.report_datetime = report.report_datetime</pre></li>
|
3015
|
|
3016
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre> locator_obj.save()</pre></li>
|
3017
|
|
3018
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre></pre></li>
|
3019
|
|
3020
|
<li onclick="toggle('pre140358889974464', 'post140358889974464')"><pre></pre></li>
|
3021
|
|
3022
|
</ol>
|
3023
|
|
3024
|
</div>
|
3025
|
|
3026
|
|
3027
|
|
3028
|
<div class="commands">
|
3029
|
|
3030
|
<a href="http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=#" onclick="return varToggle(this, '140358889974464')"><span>â–¶</span> Local vars</a>
|
3031
|
|
3032
|
</div>
|
3033
|
<table class="vars" id="v140358889974464" style="display: none;">
|
3034
|
<thead>
|
3035
|
<tr>
|
3036
|
<th>Variable</th>
|
3037
|
<th>Value</th>
|
3038
|
</tr>
|
3039
|
</thead>
|
3040
|
<tbody>
|
3041
|
|
3042
|
<tr>
|
3043
|
<td>consent</td>
|
3044
|
<td class="code"><pre>None</pre></td>
|
3045
|
</tr>
|
3046
|
|
3047
|
<tr>
|
3048
|
<td>locator_cls</td>
|
3049
|
<td class="code"><pre><class 'flourish_caregiver.models.caregiver_locator.CaregiverLocator'></pre></td>
|
3050
|
</tr>
|
3051
|
|
3052
|
<tr>
|
3053
|
<td>locator_model</td>
|
3054
|
<td class="code"><pre>'flourish_caregiver.caregiverlocator'</pre></td>
|
3055
|
</tr>
|
3056
|
|
3057
|
<tr>
|
3058
|
<td>locator_obj</td>
|
3059
|
<td class="code"><pre><CaregiverLocator: CaregiverLocator object (04371bfd-8909-49d6-ba65-5f177d049c6d)></pre></td>
|
3060
|
</tr>
|
3061
|
|
3062
|
<tr>
|
3063
|
<td>screening</td>
|
3064
|
<td class="code"><pre><PreFlourishSubjectScreening: PreFlourishSubjectScreening object (159728a8-3d62-4f3c-8c22-84b1567561fe)></pre></td>
|
3065
|
</tr>
|
3066
|
|
3067
|
</tbody>
|
3068
|
</table>
|
3069
|
|
3070
|
</li>
|
3071
|
|
3072
|
</ul>
|
3073
|
</div>
|
3074
|
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
|
3075
|
|
3076
|
<div id="pastebinTraceback" class="pastebin" style="display: none;">
|
3077
|
<input type="hidden" name="language" value="PythonConsole">
|
3078
|
<input type="hidden" name="title" value="AttributeError at /admin/pre_flourish/preflourishsubjectscreening/add/">
|
3079
|
<input type="hidden" name="source" value="Django Dpaste Agent">
|
3080
|
<input type="hidden" name="poster" value="Django">
|
3081
|
<textarea name="content" id="traceback_area" cols="140" rows="25">Environment:
|
3082
|
|
3083
|
|
3084
|
Request Method: POST
|
3085
|
Request URL: http://127.0.0.1:9000/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang=
|
3086
|
|
3087
|
Django Version: 3.1.14
|
3088
|
Python Version: 3.8.0
|
3089
|
Installed Applications:
|
3090
|
['django.contrib.admin',
|
3091
|
'django.contrib.auth',
|
3092
|
'django.contrib.contenttypes',
|
3093
|
'django.contrib.sessions',
|
3094
|
'django.contrib.sites',
|
3095
|
'django.contrib.messages',
|
3096
|
'django.contrib.staticfiles',
|
3097
|
'django_crypto_fields.apps.AppConfig',
|
3098
|
'django_q',
|
3099
|
'django_tables2',
|
3100
|
'django_extensions',
|
3101
|
'crispy_forms',
|
3102
|
'multiselectfield',
|
3103
|
'edc_action_item.apps.AppConfig',
|
3104
|
'edc_consent.apps.AppConfig',
|
3105
|
'edc_dashboard.apps.AppConfig',
|
3106
|
'edc_device.apps.AppConfig',
|
3107
|
'edc_identifier.apps.AppConfig',
|
3108
|
'edc_lab.apps.AppConfig',
|
3109
|
'edc_model_admin.apps.AppConfig',
|
3110
|
'edc_navbar.apps.AppConfig',
|
3111
|
'edc_prn.apps.AppConfig',
|
3112
|
'edc_registration.apps.AppConfig',
|
3113
|
'edc_reference.apps.AppConfig',
|
3114
|
'edc_subject_dashboard.apps.AppConfig',
|
3115
|
'edc_visit_schedule.apps.AppConfig',
|
3116
|
'edc_call_manager.apps.AppConfig',
|
3117
|
'edc_metadata_rules.apps.AppConfig',
|
3118
|
'edc_document_archieve.apps.AppConfig',
|
3119
|
'flourish_export.apps.AppConfig',
|
3120
|
'flourish_dashboard.apps.AppConfig',
|
3121
|
'flourish_prn.apps.AppConfig',
|
3122
|
'flourish_caregiver.apps.AppConfig',
|
3123
|
'flourish_child.apps.AppConfig',
|
3124
|
'flourish_follow.apps.AppConfig',
|
3125
|
'pre_flourish_follow.apps.AppConfig',
|
3126
|
'flourish_reports.apps.AppConfig',
|
3127
|
'flourish_metadata_rules.apps.AppConfig',
|
3128
|
'flourish_labs.apps.AppConfig',
|
3129
|
'flourish_reference.apps.AppConfig',
|
3130
|
'flourish_visit_schedule.apps.AppConfig',
|
3131
|
'flourish.apps.EdcAppointmentAppConfig',
|
3132
|
'flourish.apps.EdcBaseAppConfig',
|
3133
|
'flourish.apps.EdcDataManagerAppConfig',
|
3134
|
'flourish.apps.EdcFacilityAppConfig',
|
3135
|
'flourish.apps.EdcLocatorAppConfig',
|
3136
|
'flourish.apps.EdcMetadataAppConfig',
|
3137
|
'flourish.apps.EdcOdkAppConfig',
|
3138
|
'flourish.apps.EdcProtocolAppConfig',
|
3139
|
'flourish.apps.EdcVisitTrackingAppConfig',
|
3140
|
'flourish.apps.EdcTimepointAppConfig',
|
3141
|
'flourish.apps.EdcSenaiteInterfaceAppConfig',
|
3142
|
'pre_flourish.apps.AppConfig',
|
3143
|
'flourish_calendar.apps.AppConfig',
|
3144
|
'flourish.apps.AppConfig',
|
3145
|
'flourish_facet.apps.AppConfig',
|
3146
|
'rest_framework',
|
3147
|
'rest_framework.authtoken',
|
3148
|
'cacheops']
|
3149
|
Installed Middleware:
|
3150
|
['django.middleware.security.SecurityMiddleware',
|
3151
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
3152
|
'django.middleware.common.CommonMiddleware',
|
3153
|
'django.middleware.csrf.CsrfViewMiddleware',
|
3154
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
3155
|
'django.contrib.sites.middleware.CurrentSiteMiddleware',
|
3156
|
'django.contrib.messages.middleware.MessageMiddleware',
|
3157
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
3158
|
'edc_dashboard.middleware.DashboardMiddleware',
|
3159
|
'edc_subject_dashboard.middleware.DashboardMiddleware']
|
3160
|
|
3161
|
|
3162
|
|
3163
|
Traceback (most recent call last):
|
3164
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
|
3165
|
response = get_response(request)
|
3166
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
|
3167
|
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
3168
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py", line 614, in wrapper
|
3169
|
return self.admin_site.admin_view(view)(*args, **kwargs)
|
3170
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
|
3171
|
response = view_func(request, *args, **kwargs)
|
3172
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
|
3173
|
response = view_func(request, *args, **kwargs)
|
3174
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
|
3175
|
return view(request, *args, **kwargs)
|
3176
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_next_url_redirect_mixin.py", line 58, in add_view
|
3177
|
return super().add_view(request, form_url=form_url, extra_context=extra_context)
|
3178
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_form_instructions_mixin.py", line 59, in add_view
|
3179
|
return super().add_view(
|
3180
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django_revision/modeladmin_mixin.py", line 19, in add_view
|
3181
|
return super(ModelAdminRevisionMixin, self).add_view(request, form_url=form_url, extra_context=extra_context)
|
3182
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_institution_mixin.py", line 21, in add_view
|
3183
|
return super().add_view(
|
3184
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1653, in add_view
|
3185
|
return self.changeform_view(request, None, form_url, extra_context)
|
3186
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
|
3187
|
return bound_method(*args, **kwargs)
|
3188
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
|
3189
|
response = view_func(request, *args, **kwargs)
|
3190
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1534, in changeform_view
|
3191
|
return self._changeform_view(request, object_id, form_url, extra_context)
|
3192
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1580, in _changeform_view
|
3193
|
self.save_model(request, new_object, form, not add)
|
3194
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_model_admin/model_admin_audit_fields_mixin.py", line 21, in save_model
|
3195
|
super().save_model(request, obj, form, change)
|
3196
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/sites/admin.py", line 18, in save_model
|
3197
|
super().save_model(request, obj, form, change)
|
3198
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/contrib/admin/options.py", line 1093, in save_model
|
3199
|
obj.save()
|
3200
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/pre_flourish_subject_screening.py", line 123, in save
|
3201
|
super(PreFlourishSubjectScreening, self).save(*args, **kwargs)
|
3202
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/sites/site_model_mixin.py", line 35, in save
|
3203
|
super().save(*args, **kwargs)
|
3204
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_search/model_mixins.py", line 61, in save
|
3205
|
super().save(*args, **kwargs)
|
3206
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_device/model_mixins.py", line 36, in save
|
3207
|
super().save(*args, **kwargs)
|
3208
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/edc_base/model_mixins/base_model.py", line 69, in save
|
3209
|
super().save(*args, **kwargs)
|
3210
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/db/models/base.py", line 753, in save
|
3211
|
self.save_base(using=using, force_insert=force_insert,
|
3212
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/db/models/base.py", line 801, in save_base
|
3213
|
post_save.send(
|
3214
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/dispatch/dispatcher.py", line 177, in send
|
3215
|
return [
|
3216
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/dispatch/dispatcher.py", line 178, in <listcomp>
|
3217
|
(receiver, receiver(signal=self, sender=sender, **named))
|
3218
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/signals.py", line 63, in pre_flourish_screening_on_post_save
|
3219
|
update_locator(screening=instance)
|
3220
|
File "/home/flourish/.venvs/flourish/lib/python3.8/site-packages/pre_flourish/models/caregiver/signals.py", line 26, in update_locator
|
3221
|
locator_obj.subject_identifier = consent.subject_identifier
|
3222
|
|
3223
|
Exception Type: AttributeError at /admin/pre_flourish/preflourishsubjectscreening/add/
|
3224
|
Exception Value: 'NoneType' object has no attribute 'subject_identifier'
|
3225
|
</textarea>
|
3226
|
<br><br>
|
3227
|
<input type="submit" value="Share this traceback on a public website">
|
3228
|
</div>
|
3229
|
</form>
|
3230
|
</div>
|
3231
|
|
3232
|
|
3233
|
|
3234
|
<div id="requestinfo">
|
3235
|
<h2>Request information</h2>
|
3236
|
|
3237
|
|
3238
|
|
3239
|
<h3 id="user-info">USER</h3>
|
3240
|
<p>gelija</p>
|
3241
|
|
3242
|
|
3243
|
<h3 id="get-info">GET</h3>
|
3244
|
|
3245
|
<table class="req">
|
3246
|
<thead>
|
3247
|
<tr>
|
3248
|
<th>Variable</th>
|
3249
|
<th>Value</th>
|
3250
|
</tr>
|
3251
|
</thead>
|
3252
|
<tbody>
|
3253
|
|
3254
|
<tr>
|
3255
|
<td>next</td>
|
3256
|
<td class="code"><pre>'pre_flourish:pre_flourish_screening_listboard_url,screening_identifier'</pre></td>
|
3257
|
</tr>
|
3258
|
|
3259
|
<tr>
|
3260
|
<td>screening_identifier</td>
|
3261
|
<td class="code"><pre>''</pre></td>
|
3262
|
</tr>
|
3263
|
|
3264
|
<tr>
|
3265
|
<td>study_maternal_identifier</td>
|
3266
|
<td class="code"><pre>'066-14210009-1'</pre></td>
|
3267
|
</tr>
|
3268
|
|
3269
|
<tr>
|
3270
|
<td>willing_assent</td>
|
3271
|
<td class="code"><pre>''</pre></td>
|
3272
|
</tr>
|
3273
|
|
3274
|
<tr>
|
3275
|
<td>study_interest</td>
|
3276
|
<td class="code"><pre>''</pre></td>
|
3277
|
</tr>
|
3278
|
|
3279
|
<tr>
|
3280
|
<td>willing_consent</td>
|
3281
|
<td class="code"><pre>''</pre></td>
|
3282
|
</tr>
|
3283
|
|
3284
|
<tr>
|
3285
|
<td>has_child</td>
|
3286
|
<td class="code"><pre>'Yes'</pre></td>
|
3287
|
</tr>
|
3288
|
|
3289
|
<tr>
|
3290
|
<td>caregiver_omang</td>
|
3291
|
<td class="code"><pre>''</pre></td>
|
3292
|
</tr>
|
3293
|
|
3294
|
</tbody>
|
3295
|
</table>
|
3296
|
|
3297
|
|
3298
|
<h3 id="post-info">POST</h3>
|
3299
|
|
3300
|
<table class="req">
|
3301
|
<thead>
|
3302
|
<tr>
|
3303
|
<th>Variable</th>
|
3304
|
<th>Value</th>
|
3305
|
</tr>
|
3306
|
</thead>
|
3307
|
<tbody>
|
3308
|
|
3309
|
<tr>
|
3310
|
<td>csrfmiddlewaretoken</td>
|
3311
|
<td class="code"><pre>'A3ZBuKuzuSAqcVrWGoK7WchvjGeNiMLJK1k4H6yHx0lnagtLtpyDxusLfO418P9J'</pre></td>
|
3312
|
</tr>
|
3313
|
|
3314
|
<tr>
|
3315
|
<td>screening_identifier</td>
|
3316
|
<td class="code"><pre>''</pre></td>
|
3317
|
</tr>
|
3318
|
|
3319
|
<tr>
|
3320
|
<td>study_maternal_identifier</td>
|
3321
|
<td class="code"><pre>'066-14210009-1'</pre></td>
|
3322
|
</tr>
|
3323
|
|
3324
|
<tr>
|
3325
|
<td>report_datetime_0</td>
|
3326
|
<td class="code"><pre>'2023-10-17'</pre></td>
|
3327
|
</tr>
|
3328
|
|
3329
|
<tr>
|
3330
|
<td>report_datetime_1</td>
|
3331
|
<td class="code"><pre>'14:29:37'</pre></td>
|
3332
|
</tr>
|
3333
|
|
3334
|
<tr>
|
3335
|
<td>initial-report_datetime_0</td>
|
3336
|
<td class="code"><pre>'2023-10-17'</pre></td>
|
3337
|
</tr>
|
3338
|
|
3339
|
<tr>
|
3340
|
<td>initial-report_datetime_1</td>
|
3341
|
<td class="code"><pre>'14:29:37'</pre></td>
|
3342
|
</tr>
|
3343
|
|
3344
|
<tr>
|
3345
|
<td>caregiver_age</td>
|
3346
|
<td class="code"><pre>'30'</pre></td>
|
3347
|
</tr>
|
3348
|
|
3349
|
<tr>
|
3350
|
<td>valid_identification</td>
|
3351
|
<td class="code"><pre>'Yes'</pre></td>
|
3352
|
</tr>
|
3353
|
|
3354
|
<tr>
|
3355
|
<td>has_child</td>
|
3356
|
<td class="code"><pre>'Yes'</pre></td>
|
3357
|
</tr>
|
3358
|
|
3359
|
<tr>
|
3360
|
<td>biological_mother</td>
|
3361
|
<td class="code"><pre>'Yes'</pre></td>
|
3362
|
</tr>
|
3363
|
|
3364
|
<tr>
|
3365
|
<td>biological_mother_in_bcpp</td>
|
3366
|
<td class="code"><pre>'Yes'</pre></td>
|
3367
|
</tr>
|
3368
|
|
3369
|
<tr>
|
3370
|
<td>willing_consent</td>
|
3371
|
<td class="code"><pre>'Yes'</pre></td>
|
3372
|
</tr>
|
3373
|
|
3374
|
<tr>
|
3375
|
<td>willing_assent</td>
|
3376
|
<td class="code"><pre>'Yes'</pre></td>
|
3377
|
</tr>
|
3378
|
|
3379
|
<tr>
|
3380
|
<td>study_interest</td>
|
3381
|
<td class="code"><pre>'Yes'</pre></td>
|
3382
|
</tr>
|
3383
|
|
3384
|
<tr>
|
3385
|
<td>remain_in_study</td>
|
3386
|
<td class="code"><pre>'Yes'</pre></td>
|
3387
|
</tr>
|
3388
|
|
3389
|
<tr>
|
3390
|
<td>_save</td>
|
3391
|
<td class="code"><pre>'Save'</pre></td>
|
3392
|
</tr>
|
3393
|
|
3394
|
</tbody>
|
3395
|
</table>
|
3396
|
|
3397
|
<h3 id="files-info">FILES</h3>
|
3398
|
|
3399
|
<p>No FILES data</p>
|
3400
|
|
3401
|
|
3402
|
|
3403
|
<h3 id="cookie-info">COOKIES</h3>
|
3404
|
|
3405
|
<table class="req">
|
3406
|
<thead>
|
3407
|
<tr>
|
3408
|
<th>Variable</th>
|
3409
|
<th>Value</th>
|
3410
|
</tr>
|
3411
|
</thead>
|
3412
|
<tbody>
|
3413
|
|
3414
|
<tr>
|
3415
|
<td>csrftoken</td>
|
3416
|
<td class="code"><pre>'grnERMqXvs3McCuDhFsoZAa0HdNUwhxAqpI748u5yAOJaXws4GgUASlgDlD8mkVA'</pre></td>
|
3417
|
</tr>
|
3418
|
|
3419
|
<tr>
|
3420
|
<td>sessionid</td>
|
3421
|
<td class="code"><pre>'cpxpy61l6pgfaawog61m4olaeazjufjj'</pre></td>
|
3422
|
</tr>
|
3423
|
|
3424
|
</tbody>
|
3425
|
</table>
|
3426
|
|
3427
|
|
3428
|
<h3 id="meta-info">META</h3>
|
3429
|
<table class="req">
|
3430
|
<thead>
|
3431
|
<tr>
|
3432
|
<th>Variable</th>
|
3433
|
<th>Value</th>
|
3434
|
</tr>
|
3435
|
</thead>
|
3436
|
<tbody>
|
3437
|
|
3438
|
<tr>
|
3439
|
<td>CONTENT_LENGTH</td>
|
3440
|
<td class="code"><pre>'480'</pre></td>
|
3441
|
</tr>
|
3442
|
|
3443
|
<tr>
|
3444
|
<td>CONTENT_TYPE</td>
|
3445
|
<td class="code"><pre>'application/x-www-form-urlencoded'</pre></td>
|
3446
|
</tr>
|
3447
|
|
3448
|
<tr>
|
3449
|
<td>CSRF_COOKIE</td>
|
3450
|
<td class="code"><pre>'grnERMqXvs3McCuDhFsoZAa0HdNUwhxAqpI748u5yAOJaXws4GgUASlgDlD8mkVA'</pre></td>
|
3451
|
</tr>
|
3452
|
|
3453
|
<tr>
|
3454
|
<td>HTTP_ACCEPT</td>
|
3455
|
<td class="code"><pre>'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'</pre></td>
|
3456
|
</tr>
|
3457
|
|
3458
|
<tr>
|
3459
|
<td>HTTP_ACCEPT_ENCODING</td>
|
3460
|
<td class="code"><pre>'gzip, deflate'</pre></td>
|
3461
|
</tr>
|
3462
|
|
3463
|
<tr>
|
3464
|
<td>HTTP_ACCEPT_LANGUAGE</td>
|
3465
|
<td class="code"><pre>'en-US,en;q=0.9'</pre></td>
|
3466
|
</tr>
|
3467
|
|
3468
|
<tr>
|
3469
|
<td>HTTP_CACHE_CONTROL</td>
|
3470
|
<td class="code"><pre>'max-age=0'</pre></td>
|
3471
|
</tr>
|
3472
|
|
3473
|
<tr>
|
3474
|
<td>HTTP_CONNECTION</td>
|
3475
|
<td class="code"><pre>'close'</pre></td>
|
3476
|
</tr>
|
3477
|
|
3478
|
<tr>
|
3479
|
<td>HTTP_COOKIE</td>
|
3480
|
<td class="code"><pre>('csrftoken=grnERMqXvs3McCuDhFsoZAa0HdNUwhxAqpI748u5yAOJaXws4GgUASlgDlD8mkVA; '
|
3481
|
'sessionid=cpxpy61l6pgfaawog61m4olaeazjufjj')</pre></td>
|
3482
|
</tr>
|
3483
|
|
3484
|
<tr>
|
3485
|
<td>HTTP_HOST</td>
|
3486
|
<td class="code"><pre>'127.0.0.1:9000'</pre></td>
|
3487
|
</tr>
|
3488
|
|
3489
|
<tr>
|
3490
|
<td>HTTP_ORIGIN</td>
|
3491
|
<td class="code"><pre>'http://flourish-dev.bhp.org.bw'</pre></td>
|
3492
|
</tr>
|
3493
|
|
3494
|
<tr>
|
3495
|
<td>HTTP_REFERER</td>
|
3496
|
<td class="code"><pre>'http://flourish-dev.bhp.org.bw/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='</pre></td>
|
3497
|
</tr>
|
3498
|
|
3499
|
<tr>
|
3500
|
<td>HTTP_UPGRADE_INSECURE_REQUESTS</td>
|
3501
|
<td class="code"><pre>'1'</pre></td>
|
3502
|
</tr>
|
3503
|
|
3504
|
<tr>
|
3505
|
<td>HTTP_USER_AGENT</td>
|
3506
|
<td class="code"><pre>('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, '
|
3507
|
'like Gecko) Chrome/90.0.4430.212 Safari/537.36')</pre></td>
|
3508
|
</tr>
|
3509
|
|
3510
|
<tr>
|
3511
|
<td>PATH_INFO</td>
|
3512
|
<td class="code"><pre>'/admin/pre_flourish/preflourishsubjectscreening/add/'</pre></td>
|
3513
|
</tr>
|
3514
|
|
3515
|
<tr>
|
3516
|
<td>QUERY_STRING</td>
|
3517
|
<td class="code"><pre>'next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='</pre></td>
|
3518
|
</tr>
|
3519
|
|
3520
|
<tr>
|
3521
|
<td>RAW_URI</td>
|
3522
|
<td class="code"><pre>'/admin/pre_flourish/preflourishsubjectscreening/add/?next=pre_flourish:pre_flourish_screening_listboard_url,screening_identifier&screening_identifier=&screening_identifier=&study_maternal_identifier=066-14210009-1&willing_assent=&study_interest=&willing_consent=&has_child=Yes&caregiver_omang='</pre></td>
|
3523
|
</tr>
|
3524
|
|
3525
|
<tr>
|
3526
|
<td>REMOTE_ADDR</td>
|
3527
|
<td class="code"><pre>'127.0.0.1'</pre></td>
|
3528
|
</tr>
|
3529
|
|
3530
|
<tr>
|
3531
|
<td>REMOTE_PORT</td>
|
3532
|
<td class="code"><pre>'37790'</pre></td>
|
3533
|
</tr>
|
3534
|
|
3535
|
<tr>
|
3536
|
<td>REQUEST_METHOD</td>
|
3537
|
<td class="code"><pre>'POST'</pre></td>
|
3538
|
</tr>
|
3539
|
|
3540
|
<tr>
|
3541
|
<td>SCRIPT_NAME</td>
|
3542
|
<td class="code"><pre>''</pre></td>
|
3543
|
</tr>
|
3544
|
|
3545
|
<tr>
|
3546
|
<td>SERVER_NAME</td>
|
3547
|
<td class="code"><pre>'127.0.0.1'</pre></td>
|
3548
|
</tr>
|
3549
|
|
3550
|
<tr>
|
3551
|
<td>SERVER_PORT</td>
|
3552
|
<td class="code"><pre>'9000'</pre></td>
|
3553
|
</tr>
|
3554
|
|
3555
|
<tr>
|
3556
|
<td>SERVER_PROTOCOL</td>
|
3557
|
<td class="code"><pre>'HTTP/1.0'</pre></td>
|
3558
|
</tr>
|
3559
|
|
3560
|
<tr>
|
3561
|
<td>SERVER_SOFTWARE</td>
|
3562
|
<td class="code"><pre>'gunicorn/20.1.0'</pre></td>
|
3563
|
</tr>
|
3564
|
|
3565
|
<tr>
|
3566
|
<td>gunicorn.socket</td>
|
3567
|
<td class="code"><pre><socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 9000), raddr=('127.0.0.1', 37790)></pre></td>
|
3568
|
</tr>
|
3569
|
|
3570
|
<tr>
|
3571
|
<td>wsgi.errors</td>
|
3572
|
<td class="code"><pre><gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa7d9d17eb0></pre></td>
|
3573
|
</tr>
|
3574
|
|
3575
|
<tr>
|
3576
|
<td>wsgi.file_wrapper</td>
|
3577
|
<td class="code"><pre><class 'gunicorn.http.wsgi.FileWrapper'></pre></td>
|
3578
|
</tr>
|
3579
|
|
3580
|
<tr>
|
3581
|
<td>wsgi.input</td>
|
3582
|
<td class="code"><pre><gunicorn.http.body.Body object at 0x7fa7d9eab2e0></pre></td>
|
3583
|
</tr>
|
3584
|
|
3585
|
<tr>
|
3586
|
<td>wsgi.input_terminated</td>
|
3587
|
<td class="code"><pre>True</pre></td>
|
3588
|
</tr>
|
3589
|
|
3590
|
<tr>
|
3591
|
<td>wsgi.multiprocess</td>
|
3592
|
<td class="code"><pre>True</pre></td>
|
3593
|
</tr>
|
3594
|
|
3595
|
<tr>
|
3596
|
<td>wsgi.multithread</td>
|
3597
|
<td class="code"><pre>False</pre></td>
|
3598
|
</tr>
|
3599
|
|
3600
|
<tr>
|
3601
|
<td>wsgi.run_once</td>
|
3602
|
<td class="code"><pre>False</pre></td>
|
3603
|
</tr>
|
3604
|
|
3605
|
<tr>
|
3606
|
<td>wsgi.url_scheme</td>
|
3607
|
<td class="code"><pre>'http'</pre></td>
|
3608
|
</tr>
|
3609
|
|
3610
|
<tr>
|
3611
|
<td>wsgi.version</td>
|
3612
|
<td class="code"><pre>(1, 0)</pre></td>
|
3613
|
</tr>
|
3614
|
|
3615
|
</tbody>
|
3616
|
</table>
|
3617
|
|
3618
|
|
3619
|
<h3 id="settings-info">Settings</h3>
|
3620
|
<h4>Using settings module <code>flourish.settings</code></h4>
|
3621
|
<table class="req">
|
3622
|
<thead>
|
3623
|
<tr>
|
3624
|
<th>Setting</th>
|
3625
|
<th>Value</th>
|
3626
|
</tr>
|
3627
|
</thead>
|
3628
|
<tbody>
|
3629
|
|
3630
|
<tr>
|
3631
|
<td>ABSOLUTE_URL_OVERRIDES</td>
|
3632
|
<td class="code"><pre>{}</pre></td>
|
3633
|
</tr>
|
3634
|
|
3635
|
<tr>
|
3636
|
<td>ADMINS</td>
|
3637
|
<td class="code"><pre>[]</pre></td>
|
3638
|
</tr>
|
3639
|
|
3640
|
<tr>
|
3641
|
<td>ALLOWED_HOSTS</td>
|
3642
|
<td class="code"><pre>['127.0.0.1',
|
3643
|
'localhost',
|
3644
|
'flourish-dev.bhp.org.bw',
|
3645
|
'10.113.201.239',
|
3646
|
'192.168.8.102']</pre></td>
|
3647
|
</tr>
|
3648
|
|
3649
|
<tr>
|
3650
|
<td>APPEND_SLASH</td>
|
3651
|
<td class="code"><pre>True</pre></td>
|
3652
|
</tr>
|
3653
|
|
3654
|
<tr>
|
3655
|
<td>APP_NAME</td>
|
3656
|
<td class="code"><pre>'flourish'</pre></td>
|
3657
|
</tr>
|
3658
|
|
3659
|
<tr>
|
3660
|
<td>AUTHENTICATION_BACKENDS</td>
|
3661
|
<td class="code"><pre>['django.contrib.auth.backends.ModelBackend']</pre></td>
|
3662
|
</tr>
|
3663
|
|
3664
|
<tr>
|
3665
|
<td>AUTH_PASSWORD_VALIDATORS</td>
|
3666
|
<td class="code"><pre>'********************'</pre></td>
|
3667
|
</tr>
|
3668
|
|
3669
|
<tr>
|
3670
|
<td>AUTH_USER_MODEL</td>
|
3671
|
<td class="code"><pre>'auth.User'</pre></td>
|
3672
|
</tr>
|
3673
|
|
3674
|
<tr>
|
3675
|
<td>BASE_DIR</td>
|
3676
|
<td class="code"><pre>PosixPath('/home/flourish/source/flourish')</pre></td>
|
3677
|
</tr>
|
3678
|
|
3679
|
<tr>
|
3680
|
<td>BASE_FORMAT</td>
|
3681
|
<td class="code"><pre>'https://%(host)s/v1/projects/2/forms/%(form_id)s/%(api)s'</pre></td>
|
3682
|
</tr>
|
3683
|
|
3684
|
<tr>
|
3685
|
<td>CACHEOPS</td>
|
3686
|
<td class="code"><pre>{'*.*': {'timeout': 3600},
|
3687
|
'edc_appointments.*': None,
|
3688
|
'flourish_calendar.*': {'ops': 'all', 'timeout': 86400},
|
3689
|
'flourish_caregiver.*': {'ops': 'all', 'timeout': 86400},
|
3690
|
'flourish_child.*': {'ops': 'all', 'timeout': 86400},
|
3691
|
'flourish_child.models.child_appointment.Appointment': None,
|
3692
|
'flourish_facet.*': None,
|
3693
|
'flourish_follow.*': {'ops': 'all', 'timeout': 86400},
|
3694
|
'flourish_prn.*': {'ops': 'all', 'timeout': 86400}}</pre></td>
|
3695
|
</tr>
|
3696
|
|
3697
|
<tr>
|
3698
|
<td>CACHEOPS_REDIS</td>
|
3699
|
<td class="code"><pre>'redis://localhost:6379/1'</pre></td>
|
3700
|
</tr>
|
3701
|
|
3702
|
<tr>
|
3703
|
<td>CACHES</td>
|
3704
|
<td class="code"><pre>{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}</pre></td>
|
3705
|
</tr>
|
3706
|
|
3707
|
<tr>
|
3708
|
<td>CACHE_MIDDLEWARE_ALIAS</td>
|
3709
|
<td class="code"><pre>'default'</pre></td>
|
3710
|
</tr>
|
3711
|
|
3712
|
<tr>
|
3713
|
<td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
|
3714
|
<td class="code"><pre>'********************'</pre></td>
|
3715
|
</tr>
|
3716
|
|
3717
|
<tr>
|
3718
|
<td>CACHE_MIDDLEWARE_SECONDS</td>
|
3719
|
<td class="code"><pre>600</pre></td>
|
3720
|
</tr>
|
3721
|
|
3722
|
<tr>
|
3723
|
<td>CELERY_BROKER_URL</td>
|
3724
|
<td class="code"><pre>'amqp://localhost'</pre></td>
|
3725
|
</tr>
|
3726
|
|
3727
|
<tr>
|
3728
|
<td>CELERY_INCLUDE</td>
|
3729
|
<td class="code"><pre>['flourish_child.utils', 'edc_odk.tasks']</pre></td>
|
3730
|
</tr>
|
3731
|
|
3732
|
<tr>
|
3733
|
<td>CELERY_TIMEZONE</td>
|
3734
|
<td class="code"><pre>'Africa/Gaborone'</pre></td>
|
3735
|
</tr>
|
3736
|
|
3737
|
<tr>
|
3738
|
<td>CELLPHONE_REGEX</td>
|
3739
|
<td class="code"><pre>'^[7]{1}[12345678]{1}[0-9]{6}$'</pre></td>
|
3740
|
</tr>
|
3741
|
|
3742
|
<tr>
|
3743
|
<td>CONFIG_FILE</td>
|
3744
|
<td class="code"><pre>'flourish.ini'</pre></td>
|
3745
|
</tr>
|
3746
|
|
3747
|
<tr>
|
3748
|
<td>CONFIG_PATH</td>
|
3749
|
<td class="code"><pre>'/etc/flourish/flourish.ini'</pre></td>
|
3750
|
</tr>
|
3751
|
|
3752
|
<tr>
|
3753
|
<td>COUNTRY</td>
|
3754
|
<td class="code"><pre>'botswana'</pre></td>
|
3755
|
</tr>
|
3756
|
|
3757
|
<tr>
|
3758
|
<td>CSRF_COOKIE_AGE</td>
|
3759
|
<td class="code"><pre>31449600</pre></td>
|
3760
|
</tr>
|
3761
|
|
3762
|
<tr>
|
3763
|
<td>CSRF_COOKIE_DOMAIN</td>
|
3764
|
<td class="code"><pre>None</pre></td>
|
3765
|
</tr>
|
3766
|
|
3767
|
<tr>
|
3768
|
<td>CSRF_COOKIE_HTTPONLY</td>
|
3769
|
<td class="code"><pre>False</pre></td>
|
3770
|
</tr>
|
3771
|
|
3772
|
<tr>
|
3773
|
<td>CSRF_COOKIE_NAME</td>
|
3774
|
<td class="code"><pre>'csrftoken'</pre></td>
|
3775
|
</tr>
|
3776
|
|
3777
|
<tr>
|
3778
|
<td>CSRF_COOKIE_PATH</td>
|
3779
|
<td class="code"><pre>'/'</pre></td>
|
3780
|
</tr>
|
3781
|
|
3782
|
<tr>
|
3783
|
<td>CSRF_COOKIE_SAMESITE</td>
|
3784
|
<td class="code"><pre>'Lax'</pre></td>
|
3785
|
</tr>
|
3786
|
|
3787
|
<tr>
|
3788
|
<td>CSRF_COOKIE_SECURE</td>
|
3789
|
<td class="code"><pre>False</pre></td>
|
3790
|
</tr>
|
3791
|
|
3792
|
<tr>
|
3793
|
<td>CSRF_FAILURE_VIEW</td>
|
3794
|
<td class="code"><pre>'django.views.csrf.csrf_failure'</pre></td>
|
3795
|
</tr>
|
3796
|
|
3797
|
<tr>
|
3798
|
<td>CSRF_HEADER_NAME</td>
|
3799
|
<td class="code"><pre>'HTTP_X_CSRFTOKEN'</pre></td>
|
3800
|
</tr>
|
3801
|
|
3802
|
<tr>
|
3803
|
<td>CSRF_TRUSTED_ORIGINS</td>
|
3804
|
<td class="code"><pre>[]</pre></td>
|
3805
|
</tr>
|
3806
|
|
3807
|
<tr>
|
3808
|
<td>CSRF_USE_SESSIONS</td>
|
3809
|
<td class="code"><pre>False</pre></td>
|
3810
|
</tr>
|
3811
|
|
3812
|
<tr>
|
3813
|
<td>DASHBOARD_BASE_TEMPLATES</td>
|
3814
|
<td class="code"><pre>{'child_listboard_template': 'flourish_dashboard/child_subject/listboard.html',
|
3815
|
'child_screening_listboard_template': 'flourish_dashboard/child_subject/screening_listboard.html',
|
3816
|
'child_subject_dashboard_template': 'flourish_dashboard/child_subject/dashboard.html',
|
3817
|
'dashboard_base_template': 'flourish/base.html',
|
3818
|
'data_manager_listboard_template': 'edc_data_manager/listboard.html',
|
3819
|
'export_listboard_template': 'flourish_export/listboard.html',
|
3820
|
'facet_child_dashboard_template': 'flourish_facet/child/flourish_facet_dashboard.html',
|
3821
|
'facet_child_listboard_template': 'flourish_facet/child/flourish_facet_listboard.html',
|
3822
|
'facet_flourish_consent_template': 'flourish_facet/mother/flourish_consent_listboard.html',
|
3823
|
'facet_mother_dashboard_template': 'flourish_facet/mother/flourish_facet_dashboard.html',
|
3824
|
'facet_mother_listboard_template': 'flourish_facet/mother/flourish_facet_listboard.html',
|
3825
|
'flourish_follow_appt_listboard_template': 'flourish_follow/appointments_windows_listboards.html',
|
3826
|
'flourish_follow_book_listboard_template': 'flourish_follow/book_listboard.html',
|
3827
|
'flourish_follow_booking_listboard_template': 'flourish_follow/bookings_listboard.html',
|
3828
|
'flourish_follow_listboard_template': 'flourish_follow/follow_listboard.html',
|
3829
|
'listboard_base_template': 'flourish/base.html',
|
3830
|
'maternal_dataset_listboard_template': 'flourish_dashboard/maternal_dataset/maternal_listboard.html',
|
3831
|
'maternal_screening_listboard_template': 'flourish_dashboard/screening/maternal_listboard.html',
|
3832
|
'odk_listboard_template': 'edc_odk/odk_forms/listboard.html',
|
3833
|
'pre_flourish_caragiver_locator_listboard_template': 'pre_flourish/caregiver_locator_listboard.html',
|
3834
|
'pre_flourish_child_dashboard_template': 'pre_flourish/child/dashboard.html',
|
3835
|
'pre_flourish_child_listboard_template': 'pre_flourish/child/child_listboard.html',
|
3836
|
'pre_flourish_follow_appt_listboard_template': 'pre_flourish_follow/appointments_windows_listboards.html',
|
3837
|
'pre_flourish_follow_book_listboard_template': 'pre_flourish_follow/book_listboard.html',
|
3838
|
'pre_flourish_follow_booking_listboard_template': 'pre_flourish_follow/bookings_listboard.html',
|
3839
|
'pre_flourish_follow_listboard_template': 'pre_flourish_follow/follow_listboard.html',
|
3840
|
'pre_flourish_screening_listboard_template': 'pre_flourish/caregiver/listboard.html',
|
3841
|
'pre_flourish_subject_dashboard_template': 'pre_flourish/caregiver/dashboard.html',
|
3842
|
'pre_flourish_subject_listboard_template': 'pre_flourish/caregiver/subject_listboard.html',
|
3843
|
'senaite_result_listboard_template': 'flourish_dashboard/result_listboard.html',
|
3844
|
'subject_dashboard_template': 'flourish_dashboard/maternal_subject/dashboard.html',
|
3845
|
'subject_listboard_template': 'flourish_dashboard/maternal_subject/listboard.html'}</pre></td>
|
3846
|
</tr>
|
3847
|
|
3848
|
<tr>
|
3849
|
<td>DASHBOARD_URL_NAMES</td>
|
3850
|
<td class="code"><pre>{'child_dashboard_url': 'flourish_dashboard:child_dashboard_url',
|
3851
|
'child_listboard_url': 'flourish_dashboard:child_listboard_url',
|
3852
|
'child_result_listboard_url': 'flourish_dashboard:child_result_listboard_url',
|
3853
|
'child_screening_listboard_url': 'flourish_dashboard:child_screening_listboard_url',
|
3854
|
'data_manager_listboard_url': 'edc_data_manager:data_manager_listboard_url',
|
3855
|
'export_listboard_url': 'flourish_export:export_listboard_url',
|
3856
|
'facet_child_dashboard_url': 'flourish_facet:facet_child_dashboard_url',
|
3857
|
'facet_child_listboard_url': 'flourish_facet:facet_child_listboard_url',
|
3858
|
'facet_flourish_consent_listboard_url': 'flourish_facet:facet_flourish_consent_listboard_url',
|
3859
|
'facet_mother_dashboard_url': 'flourish_facet:facet_mother_dashboard_url',
|
3860
|
'facet_mother_listboard_url': 'flourish_facet:facet_mother_listboard_url',
|
3861
|
'flourish_calendar_url': 'flourish_calendar:calendar',
|
3862
|
'flourish_follow_appt_listboard_url': 'flourish_follow:flourish_follow_appt_listboard_url',
|
3863
|
'flourish_follow_book_listboard_url': 'flourish_follow:flourish_follow_book_listboard_url',
|
3864
|
'flourish_follow_booking_listboard_url': 'flourish_follow:flourish_follow_booking_listboard_url',
|
3865
|
'flourish_follow_listboard_url': 'flourish_follow:flourish_follow_listboard_url',
|
3866
|
'maternal_dataset_listboard_url': 'flourish_dashboard:maternal_dataset_listboard_url',
|
3867
|
'maternal_screening_listboard_url': 'flourish_dashboard:maternal_screening_listboard_url',
|
3868
|
'odk_listboard_url': 'edc_odk:odk_listboard_url',
|
3869
|
'pre_flourish_caregiver_locator_listboard_url': 'pre_flourish:pre_flourish_caregiver_locator_listboard_url',
|
3870
|
'pre_flourish_child_dashboard_url': 'pre_flourish:pre_flourish_child_dashboard_url',
|
3871
|
'pre_flourish_child_listboard_url': 'pre_flourish:pre_flourish_child_listboard_url',
|
3872
|
'pre_flourish_consent_listboard_url': 'pre_flourish:pre_flourish_consent_listboard_url',
|
3873
|
'pre_flourish_follow_appt_listboard_url': 'pre_flourish_follow:pre_flourish_follow_appt_listboard_url',
|
3874
|
'pre_flourish_follow_book_listboard_url': 'pre_flourish_follow:pre_flourish_follow_book_listboard_url',
|
3875
|
'pre_flourish_follow_booking_listboard_url': 'pre_flourish_follow:pre_flourish_follow_booking_listboard_url',
|
3876
|
'pre_flourish_follow_listboard_url': 'pre_flourish_follow:pre_flourish_follow_listboard_url',
|
3877
|
'pre_flourish_maternal_dataset_listboard_url': 'pre_flourish:pre_flourish_maternal_dataset_listboard_url',
|
3878
|
'pre_flourish_screening_listboard_url': 'pre_flourish:pre_flourish_screening_listboard_url',
|
3879
|
'pre_flourish_subject_dashboard_url': 'pre_flourish:pre_flourish_subject_dashboard_url',
|
3880
|
'senaite_result_listboard_url': 'flourish_dashboard:caregiver_result_listboard_url',
|
3881
|
'subject_dashboard_url': 'flourish_dashboard:subject_dashboard_url',
|
3882
|
'subject_listboard_url': 'flourish_dashboard:subject_listboard_url'}</pre></td>
|
3883
|
</tr>
|
3884
|
|
3885
|
<tr>
|
3886
|
<td>DATABASES</td>
|
3887
|
<td class="code"><pre>{'default': {'ATOMIC_REQUESTS': False,
|
3888
|
'AUTOCOMMIT': True,
|
3889
|
'CONN_MAX_AGE': 0,
|
3890
|
'ENGINE': 'django.db.backends.mysql',
|
3891
|
'HOST': '127.0.0.1',
|
3892
|
'NAME': 'flourish',
|
3893
|
'OPTIONS': {},
|
3894
|
'PASSWORD': '********************',
|
3895
|
'PORT': '3306',
|
3896
|
'TEST': {'CHARSET': None,
|
3897
|
'COLLATION': None,
|
3898
|
'MIGRATE': True,
|
3899
|
'MIRROR': None,
|
3900
|
'NAME': None},
|
3901
|
'TIME_ZONE': None,
|
3902
|
'USER': 'root'}}</pre></td>
|
3903
|
</tr>
|
3904
|
|
3905
|
<tr>
|
3906
|
<td>DATABASE_ROUTERS</td>
|
3907
|
<td class="code"><pre>[]</pre></td>
|
3908
|
</tr>
|
3909
|
|
3910
|
<tr>
|
3911
|
<td>DATA_UPLOAD_MAX_MEMORY_SIZE</td>
|
3912
|
<td class="code"><pre>2621440</pre></td>
|
3913
|
</tr>
|
3914
|
|
3915
|
<tr>
|
3916
|
<td>DATA_UPLOAD_MAX_NUMBER_FIELDS</td>
|
3917
|
<td class="code"><pre>1000</pre></td>
|
3918
|
</tr>
|
3919
|
|
3920
|
<tr>
|
3921
|
<td>DATETIME_FORMAT</td>
|
3922
|
<td class="code"><pre>'N j, Y, P'</pre></td>
|
3923
|
</tr>
|
3924
|
|
3925
|
<tr>
|
3926
|
<td>DATETIME_INPUT_FORMATS</td>
|
3927
|
<td class="code"><pre>['%Y-%m-%d %H:%M:%S',
|
3928
|
'%Y-%m-%d %H:%M:%S.%f',
|
3929
|
'%Y-%m-%d %H:%M',
|
3930
|
'%m/%d/%Y %H:%M:%S',
|
3931
|
'%m/%d/%Y %H:%M:%S.%f',
|
3932
|
'%m/%d/%Y %H:%M',
|
3933
|
'%m/%d/%y %H:%M:%S',
|
3934
|
'%m/%d/%y %H:%M:%S.%f',
|
3935
|
'%m/%d/%y %H:%M']</pre></td>
|
3936
|
</tr>
|
3937
|
|
3938
|
<tr>
|
3939
|
<td>DATE_FORMAT</td>
|
3940
|
<td class="code"><pre>'Y-m-d'</pre></td>
|
3941
|
</tr>
|
3942
|
|
3943
|
<tr>
|
3944
|
<td>DATE_INPUT_FORMATS</td>
|
3945
|
<td class="code"><pre>['%Y-%m-%d',
|
3946
|
'%m/%d/%Y',
|
3947
|
'%m/%d/%y',
|
3948
|
'%b %d %Y',
|
3949
|
'%b %d, %Y',
|
3950
|
'%d %b %Y',
|
3951
|
'%d %b, %Y',
|
3952
|
'%B %d %Y',
|
3953
|
'%B %d, %Y',
|
3954
|
'%d %B %Y',
|
3955
|
'%d %B, %Y']</pre></td>
|
3956
|
</tr>
|
3957
|
|
3958
|
<tr>
|
3959
|
<td>DB_NAME</td>
|
3960
|
<td class="code"><pre>'flourish'</pre></td>
|
3961
|
</tr>
|
3962
|
|
3963
|
<tr>
|
3964
|
<td>DB_PASSWORD</td>
|
3965
|
<td class="code"><pre>'********************'</pre></td>
|
3966
|
</tr>
|
3967
|
|
3968
|
<tr>
|
3969
|
<td>DB_USER</td>
|
3970
|
<td class="code"><pre>'root'</pre></td>
|
3971
|
</tr>
|
3972
|
|
3973
|
<tr>
|
3974
|
<td>DEBUG</td>
|
3975
|
<td class="code"><pre>True</pre></td>
|
3976
|
</tr>
|
3977
|
|
3978
|
<tr>
|
3979
|
<td>DEBUG_PROPAGATE_EXCEPTIONS</td>
|
3980
|
<td class="code"><pre>False</pre></td>
|
3981
|
</tr>
|
3982
|
|
3983
|
<tr>
|
3984
|
<td>DECIMAL_SEPARATOR</td>
|
3985
|
<td class="code"><pre>'.'</pre></td>
|
3986
|
</tr>
|
3987
|
|
3988
|
<tr>
|
3989
|
<td>DEFAULT_CHARSET</td>
|
3990
|
<td class="code"><pre>'utf-8'</pre></td>
|
3991
|
</tr>
|
3992
|
|
3993
|
<tr>
|
3994
|
<td>DEFAULT_EXCEPTION_REPORTER</td>
|
3995
|
<td class="code"><pre>'django.views.debug.ExceptionReporter'</pre></td>
|
3996
|
</tr>
|
3997
|
|
3998
|
<tr>
|
3999
|
<td>DEFAULT_EXCEPTION_REPORTER_FILTER</td>
|
4000
|
<td class="code"><pre>'django.views.debug.SafeExceptionReporterFilter'</pre></td>
|
4001
|
</tr>
|
4002
|
|
4003
|
<tr>
|
4004
|
<td>DEFAULT_FILE_STORAGE</td>
|
4005
|
<td class="code"><pre>'django.core.files.storage.FileSystemStorage'</pre></td>
|
4006
|
</tr>
|
4007
|
|
4008
|
<tr>
|
4009
|
<td>DEFAULT_FROM_EMAIL</td>
|
4010
|
<td class="code"><pre>'admin@bhp.org.bw'</pre></td>
|
4011
|
</tr>
|
4012
|
|
4013
|
<tr>
|
4014
|
<td>DEFAULT_HASHING_ALGORITHM</td>
|
4015
|
<td class="code"><pre>'sha256'</pre></td>
|
4016
|
</tr>
|
4017
|
|
4018
|
<tr>
|
4019
|
<td>DEFAULT_INDEX_TABLESPACE</td>
|
4020
|
<td class="code"><pre>''</pre></td>
|
4021
|
</tr>
|
4022
|
|
4023
|
<tr>
|
4024
|
<td>DEFAULT_STUDY_SITE</td>
|
4025
|
<td class="code"><pre>40</pre></td>
|
4026
|
</tr>
|
4027
|
|
4028
|
<tr>
|
4029
|
<td>DEFAULT_TABLESPACE</td>
|
4030
|
<td class="code"><pre>''</pre></td>
|
4031
|
</tr>
|
4032
|
|
4033
|
<tr>
|
4034
|
<td>DEVICE_ID</td>
|
4035
|
<td class="code"><pre>'99'</pre></td>
|
4036
|
</tr>
|
4037
|
|
4038
|
<tr>
|
4039
|
<td>DEVICE_ROLE</td>
|
4040
|
<td class="code"><pre>'CentralServer'</pre></td>
|
4041
|
</tr>
|
4042
|
|
4043
|
<tr>
|
4044
|
<td>DISALLOWED_USER_AGENTS</td>
|
4045
|
<td class="code"><pre>[]</pre></td>
|
4046
|
</tr>
|
4047
|
|
4048
|
<tr>
|
4049
|
<td>EMAIL_BACKEND</td>
|
4050
|
<td class="code"><pre>'django.core.mail.backends.smtp.EmailBackend'</pre></td>
|
4051
|
</tr>
|
4052
|
|
4053
|
<tr>
|
4054
|
<td>EMAIL_HOST</td>
|
4055
|
<td class="code"><pre>'smtp.office365.com'</pre></td>
|
4056
|
</tr>
|
4057
|
|
4058
|
<tr>
|
4059
|
<td>EMAIL_HOST_PASSWORD</td>
|
4060
|
<td class="code"><pre>'********************'</pre></td>
|
4061
|
</tr>
|
4062
|
|
4063
|
<tr>
|
4064
|
<td>EMAIL_HOST_USER</td>
|
4065
|
<td class="code"><pre>None</pre></td>
|
4066
|
</tr>
|
4067
|
|
4068
|
<tr>
|
4069
|
<td>EMAIL_PORT</td>
|
4070
|
<td class="code"><pre>'587'</pre></td>
|
4071
|
</tr>
|
4072
|
|
4073
|
<tr>
|
4074
|
<td>EMAIL_SSL_CERTFILE</td>
|
4075
|
<td class="code"><pre>None</pre></td>
|
4076
|
</tr>
|
4077
|
|
4078
|
<tr>
|
4079
|
<td>EMAIL_SSL_KEYFILE</td>
|
4080
|
<td class="code"><pre>'********************'</pre></td>
|
4081
|
</tr>
|
4082
|
|
4083
|
<tr>
|
4084
|
<td>EMAIL_SUBJECT_PREFIX</td>
|
4085
|
<td class="code"><pre>'[Django] '</pre></td>
|
4086
|
</tr>
|
4087
|
|
4088
|
<tr>
|
4089
|
<td>EMAIL_TIMEOUT</td>
|
4090
|
<td class="code"><pre>None</pre></td>
|
4091
|
</tr>
|
4092
|
|
4093
|
<tr>
|
4094
|
<td>EMAIL_USE_LOCALTIME</td>
|
4095
|
<td class="code"><pre>False</pre></td>
|
4096
|
</tr>
|
4097
|
|
4098
|
<tr>
|
4099
|
<td>EMAIL_USE_SSL</td>
|
4100
|
<td class="code"><pre>False</pre></td>
|
4101
|
</tr>
|
4102
|
|
4103
|
<tr>
|
4104
|
<td>EMAIL_USE_TLS</td>
|
4105
|
<td class="code"><pre>'True'</pre></td>
|
4106
|
</tr>
|
4107
|
|
4108
|
<tr>
|
4109
|
<td>ETC_DIR</td>
|
4110
|
<td class="code"><pre>'/etc/flourish'</pre></td>
|
4111
|
</tr>
|
4112
|
|
4113
|
<tr>
|
4114
|
<td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td>
|
4115
|
<td class="code"><pre>None</pre></td>
|
4116
|
</tr>
|
4117
|
|
4118
|
<tr>
|
4119
|
<td>FILE_UPLOAD_HANDLERS</td>
|
4120
|
<td class="code"><pre>['django.core.files.uploadhandler.MemoryFileUploadHandler',
|
4121
|
'django.core.files.uploadhandler.TemporaryFileUploadHandler']</pre></td>
|
4122
|
</tr>
|
4123
|
|
4124
|
<tr>
|
4125
|
<td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
|
4126
|
<td class="code"><pre>2621440</pre></td>
|
4127
|
</tr>
|
4128
|
|
4129
|
<tr>
|
4130
|
<td>FILE_UPLOAD_PERMISSIONS</td>
|
4131
|
<td class="code"><pre>420</pre></td>
|
4132
|
</tr>
|
4133
|
|
4134
|
<tr>
|
4135
|
<td>FILE_UPLOAD_TEMP_DIR</td>
|
4136
|
<td class="code"><pre>None</pre></td>
|
4137
|
</tr>
|
4138
|
|
4139
|
<tr>
|
4140
|
<td>FIRST_DAY_OF_WEEK</td>
|
4141
|
<td class="code"><pre>0</pre></td>
|
4142
|
</tr>
|
4143
|
|
4144
|
<tr>
|
4145
|
<td>FIXTURE_DIRS</td>
|
4146
|
<td class="code"><pre>[]</pre></td>
|
4147
|
</tr>
|
4148
|
|
4149
|
<tr>
|
4150
|
<td>FORCE_SCRIPT_NAME</td>
|
4151
|
<td class="code"><pre>None</pre></td>
|
4152
|
</tr>
|
4153
|
|
4154
|
<tr>
|
4155
|
<td>FORMAT_MODULE_PATH</td>
|
4156
|
<td class="code"><pre>None</pre></td>
|
4157
|
</tr>
|
4158
|
|
4159
|
<tr>
|
4160
|
<td>FORM_RENDERER</td>
|
4161
|
<td class="code"><pre>'django.forms.renderers.DjangoTemplates'</pre></td>
|
4162
|
</tr>
|
4163
|
|
4164
|
<tr>
|
4165
|
<td>HOLIDAY_FILE</td>
|
4166
|
<td class="code"><pre>'/home/flourish/source/flourish/holidays.csv'</pre></td>
|
4167
|
</tr>
|
4168
|
|
4169
|
<tr>
|
4170
|
<td>HOST</td>
|
4171
|
<td class="code"><pre>'127.0.0.1'</pre></td>
|
4172
|
</tr>
|
4173
|
|
4174
|
<tr>
|
4175
|
<td>IGNORABLE_404_URLS</td>
|
4176
|
<td class="code"><pre>[]</pre></td>
|
4177
|
</tr>
|
4178
|
|
4179
|
<tr>
|
4180
|
<td>INDEX_PAGE</td>
|
4181
|
<td class="code"><pre>'flourish.bhp.org.bw'</pre></td>
|
4182
|
</tr>
|
4183
|
|
4184
|
<tr>
|
4185
|
<td>INSTALLED_APPS</td>
|
4186
|
<td class="code"><pre>['django.contrib.admin',
|
4187
|
'django.contrib.auth',
|
4188
|
'django.contrib.contenttypes',
|
4189
|
'django.contrib.sessions',
|
4190
|
'django.contrib.sites',
|
4191
|
'django.contrib.messages',
|
4192
|
'django.contrib.staticfiles',
|
4193
|
'django_crypto_fields.apps.AppConfig',
|
4194
|
'django_q',
|
4195
|
'django_tables2',
|
4196
|
'django_extensions',
|
4197
|
'crispy_forms',
|
4198
|
'multiselectfield',
|
4199
|
'edc_action_item.apps.AppConfig',
|
4200
|
'edc_consent.apps.AppConfig',
|
4201
|
'edc_dashboard.apps.AppConfig',
|
4202
|
'edc_device.apps.AppConfig',
|
4203
|
'edc_identifier.apps.AppConfig',
|
4204
|
'edc_lab.apps.AppConfig',
|
4205
|
'edc_model_admin.apps.AppConfig',
|
4206
|
'edc_navbar.apps.AppConfig',
|
4207
|
'edc_prn.apps.AppConfig',
|
4208
|
'edc_registration.apps.AppConfig',
|
4209
|
'edc_reference.apps.AppConfig',
|
4210
|
'edc_subject_dashboard.apps.AppConfig',
|
4211
|
'edc_visit_schedule.apps.AppConfig',
|
4212
|
'edc_call_manager.apps.AppConfig',
|
4213
|
'edc_metadata_rules.apps.AppConfig',
|
4214
|
'edc_document_archieve.apps.AppConfig',
|
4215
|
'flourish_export.apps.AppConfig',
|
4216
|
'flourish_dashboard.apps.AppConfig',
|
4217
|
'flourish_prn.apps.AppConfig',
|
4218
|
'flourish_caregiver.apps.AppConfig',
|
4219
|
'flourish_child.apps.AppConfig',
|
4220
|
'flourish_follow.apps.AppConfig',
|
4221
|
'pre_flourish_follow.apps.AppConfig',
|
4222
|
'flourish_reports.apps.AppConfig',
|
4223
|
'flourish_metadata_rules.apps.AppConfig',
|
4224
|
'flourish_labs.apps.AppConfig',
|
4225
|
'flourish_reference.apps.AppConfig',
|
4226
|
'flourish_visit_schedule.apps.AppConfig',
|
4227
|
'flourish.apps.EdcAppointmentAppConfig',
|
4228
|
'flourish.apps.EdcBaseAppConfig',
|
4229
|
'flourish.apps.EdcDataManagerAppConfig',
|
4230
|
'flourish.apps.EdcFacilityAppConfig',
|
4231
|
'flourish.apps.EdcLocatorAppConfig',
|
4232
|
'flourish.apps.EdcMetadataAppConfig',
|
4233
|
'flourish.apps.EdcOdkAppConfig',
|
4234
|
'flourish.apps.EdcProtocolAppConfig',
|
4235
|
'flourish.apps.EdcVisitTrackingAppConfig',
|
4236
|
'flourish.apps.EdcTimepointAppConfig',
|
4237
|
'flourish.apps.EdcSenaiteInterfaceAppConfig',
|
4238
|
'pre_flourish.apps.AppConfig',
|
4239
|
'flourish_calendar.apps.AppConfig',
|
4240
|
'flourish.apps.AppConfig',
|
4241
|
'flourish_facet.apps.AppConfig',
|
4242
|
'rest_framework',
|
4243
|
'rest_framework.authtoken',
|
4244
|
'cacheops']</pre></td>
|
4245
|
</tr>
|
4246
|
|
4247
|
<tr>
|
4248
|
<td>INTERNAL_IPS</td>
|
4249
|
<td class="code"><pre>[]</pre></td>
|
4250
|
</tr>
|
4251
|
|
4252
|
<tr>
|
4253
|
<td>LANGUAGES</td>
|
4254
|
<td class="code"><pre>(('tn', 'Setswana'), ('en', 'English'))</pre></td>
|
4255
|
</tr>
|
4256
|
|
4257
|
<tr>
|
4258
|
<td>LANGUAGES_BIDI</td>
|
4259
|
<td class="code"><pre>['he', 'ar', 'ar-dz', 'fa', 'ur']</pre></td>
|
4260
|
</tr>
|
4261
|
|
4262
|
<tr>
|
4263
|
<td>LANGUAGE_CODE</td>
|
4264
|
<td class="code"><pre>'en-us'</pre></td>
|
4265
|
</tr>
|
4266
|
|
4267
|
<tr>
|
4268
|
<td>LANGUAGE_COOKIE_AGE</td>
|
4269
|
<td class="code"><pre>None</pre></td>
|
4270
|
</tr>
|
4271
|
|
4272
|
<tr>
|
4273
|
<td>LANGUAGE_COOKIE_DOMAIN</td>
|
4274
|
<td class="code"><pre>None</pre></td>
|
4275
|
</tr>
|
4276
|
|
4277
|
<tr>
|
4278
|
<td>LANGUAGE_COOKIE_HTTPONLY</td>
|
4279
|
<td class="code"><pre>False</pre></td>
|
4280
|
</tr>
|
4281
|
|
4282
|
<tr>
|
4283
|
<td>LANGUAGE_COOKIE_NAME</td>
|
4284
|
<td class="code"><pre>'django_language'</pre></td>
|
4285
|
</tr>
|
4286
|
|
4287
|
<tr>
|
4288
|
<td>LANGUAGE_COOKIE_PATH</td>
|
4289
|
<td class="code"><pre>'/'</pre></td>
|
4290
|
</tr>
|
4291
|
|
4292
|
<tr>
|
4293
|
<td>LANGUAGE_COOKIE_SAMESITE</td>
|
4294
|
<td class="code"><pre>None</pre></td>
|
4295
|
</tr>
|
4296
|
|
4297
|
<tr>
|
4298
|
<td>LANGUAGE_COOKIE_SECURE</td>
|
4299
|
<td class="code"><pre>False</pre></td>
|
4300
|
</tr>
|
4301
|
|
4302
|
<tr>
|
4303
|
<td>LOCALE_PATHS</td>
|
4304
|
<td class="code"><pre>[]</pre></td>
|
4305
|
</tr>
|
4306
|
|
4307
|
<tr>
|
4308
|
<td>LOGGING</td>
|
4309
|
<td class="code"><pre>{}</pre></td>
|
4310
|
</tr>
|
4311
|
|
4312
|
<tr>
|
4313
|
<td>LOGGING_CONFIG</td>
|
4314
|
<td class="code"><pre>'logging.config.dictConfig'</pre></td>
|
4315
|
</tr>
|
4316
|
|
4317
|
<tr>
|
4318
|
<td>LOGIN_REDIRECT_URL</td>
|
4319
|
<td class="code"><pre>'home_url'</pre></td>
|
4320
|
</tr>
|
4321
|
|
4322
|
<tr>
|
4323
|
<td>LOGIN_URL</td>
|
4324
|
<td class="code"><pre>'/accounts/login/'</pre></td>
|
4325
|
</tr>
|
4326
|
|
4327
|
<tr>
|
4328
|
<td>LOGOUT_REDIRECT_URL</td>
|
4329
|
<td class="code"><pre>None</pre></td>
|
4330
|
</tr>
|
4331
|
|
4332
|
<tr>
|
4333
|
<td>MANAGERS</td>
|
4334
|
<td class="code"><pre>[]</pre></td>
|
4335
|
</tr>
|
4336
|
|
4337
|
<tr>
|
4338
|
<td>MEDIA_ROOT</td>
|
4339
|
<td class="code"><pre>'/home/flourish/source/flourish/media'</pre></td>
|
4340
|
</tr>
|
4341
|
|
4342
|
<tr>
|
4343
|
<td>MEDIA_URL</td>
|
4344
|
<td class="code"><pre>'/media/'</pre></td>
|
4345
|
</tr>
|
4346
|
|
4347
|
<tr>
|
4348
|
<td>MESSAGE_STORAGE</td>
|
4349
|
<td class="code"><pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre></td>
|
4350
|
</tr>
|
4351
|
|
4352
|
<tr>
|
4353
|
<td>MIDDLEWARE</td>
|
4354
|
<td class="code"><pre>['django.middleware.security.SecurityMiddleware',
|
4355
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
4356
|
'django.middleware.common.CommonMiddleware',
|
4357
|
'django.middleware.csrf.CsrfViewMiddleware',
|
4358
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
4359
|
'django.contrib.sites.middleware.CurrentSiteMiddleware',
|
4360
|
'django.contrib.messages.middleware.MessageMiddleware',
|
4361
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
4362
|
'edc_dashboard.middleware.DashboardMiddleware',
|
4363
|
'edc_subject_dashboard.middleware.DashboardMiddleware']</pre></td>
|
4364
|
</tr>
|
4365
|
|
4366
|
<tr>
|
4367
|
<td>MIGRATION_MODULES</td>
|
4368
|
<td class="code"><pre>{}</pre></td>
|
4369
|
</tr>
|
4370
|
|
4371
|
<tr>
|
4372
|
<td>MONTH_DAY_FORMAT</td>
|
4373
|
<td class="code"><pre>'F j'</pre></td>
|
4374
|
</tr>
|
4375
|
|
4376
|
<tr>
|
4377
|
<td>NUMBER_GROUPING</td>
|
4378
|
<td class="code"><pre>0</pre></td>
|
4379
|
</tr>
|
4380
|
|
4381
|
<tr>
|
4382
|
<td>ODK_CONFIGURATION</td>
|
4383
|
<td class="code"><pre>{'OPTIONS': {'read_default_file': '/etc/odk/odk.cnf'}}</pre></td>
|
4384
|
</tr>
|
4385
|
|
4386
|
<tr>
|
4387
|
<td>ODK_SERVER_TYPE</td>
|
4388
|
<td class="code"><pre>'central'</pre></td>
|
4389
|
</tr>
|
4390
|
|
4391
|
<tr>
|
4392
|
<td>PARENT_REFERENCE_MODEL1</td>
|
4393
|
<td class="code"><pre>''</pre></td>
|
4394
|
</tr>
|
4395
|
|
4396
|
<tr>
|
4397
|
<td>PARENT_REFERENCE_MODEL2</td>
|
4398
|
<td class="code"><pre>''</pre></td>
|
4399
|
</tr>
|
4400
|
|
4401
|
<tr>
|
4402
|
<td>PASSWORD_HASHERS</td>
|
4403
|
<td class="code"><pre>'********************'</pre></td>
|
4404
|
</tr>
|
4405
|
|
4406
|
<tr>
|
4407
|
<td>PASSWORD_RESET_TIMEOUT</td>
|
4408
|
<td class="code"><pre>'********************'</pre></td>
|
4409
|
</tr>
|
4410
|
|
4411
|
<tr>
|
4412
|
<td>PASSWORD_RESET_TIMEOUT_DAYS</td>
|
4413
|
<td class="code"><pre>'********************'</pre></td>
|
4414
|
</tr>
|
4415
|
|
4416
|
<tr>
|
4417
|
<td>PORT</td>
|
4418
|
<td class="code"><pre>'3306'</pre></td>
|
4419
|
</tr>
|
4420
|
|
4421
|
<tr>
|
4422
|
<td>PREPEND_WWW</td>
|
4423
|
<td class="code"><pre>False</pre></td>
|
4424
|
</tr>
|
4425
|
|
4426
|
<tr>
|
4427
|
<td>REVIEWER_SITE_ID</td>
|
4428
|
<td class="code"><pre>1</pre></td>
|
4429
|
</tr>
|
4430
|
|
4431
|
<tr>
|
4432
|
<td>ROOT_URLCONF</td>
|
4433
|
<td class="code"><pre>'flourish.urls'</pre></td>
|
4434
|
</tr>
|
4435
|
|
4436
|
<tr>
|
4437
|
<td>SECRET_KEY</td>
|
4438
|
<td class="code"><pre>'********************'</pre></td>
|
4439
|
</tr>
|
4440
|
|
4441
|
<tr>
|
4442
|
<td>SECURE_BROWSER_XSS_FILTER</td>
|
4443
|
<td class="code"><pre>False</pre></td>
|
4444
|
</tr>
|
4445
|
|
4446
|
<tr>
|
4447
|
<td>SECURE_CONTENT_TYPE_NOSNIFF</td>
|
4448
|
<td class="code"><pre>True</pre></td>
|
4449
|
</tr>
|
4450
|
|
4451
|
<tr>
|
4452
|
<td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td>
|
4453
|
<td class="code"><pre>False</pre></td>
|
4454
|
</tr>
|
4455
|
|
4456
|
<tr>
|
4457
|
<td>SECURE_HSTS_PRELOAD</td>
|
4458
|
<td class="code"><pre>False</pre></td>
|
4459
|
</tr>
|
4460
|
|
4461
|
<tr>
|
4462
|
<td>SECURE_HSTS_SECONDS</td>
|
4463
|
<td class="code"><pre>0</pre></td>
|
4464
|
</tr>
|
4465
|
|
4466
|
<tr>
|
4467
|
<td>SECURE_PROXY_SSL_HEADER</td>
|
4468
|
<td class="code"><pre>None</pre></td>
|
4469
|
</tr>
|
4470
|
|
4471
|
<tr>
|
4472
|
<td>SECURE_REDIRECT_EXEMPT</td>
|
4473
|
<td class="code"><pre>[]</pre></td>
|
4474
|
</tr>
|
4475
|
|
4476
|
<tr>
|
4477
|
<td>SECURE_REFERRER_POLICY</td>
|
4478
|
<td class="code"><pre>'same-origin'</pre></td>
|
4479
|
</tr>
|
4480
|
|
4481
|
<tr>
|
4482
|
<td>SECURE_SSL_HOST</td>
|
4483
|
<td class="code"><pre>None</pre></td>
|
4484
|
</tr>
|
4485
|
|
4486
|
<tr>
|
4487
|
<td>SECURE_SSL_REDIRECT</td>
|
4488
|
<td class="code"><pre>False</pre></td>
|
4489
|
</tr>
|
4490
|
|
4491
|
<tr>
|
4492
|
<td>SENAITE_CONFIGURATION</td>
|
4493
|
<td class="code"><pre>{'OPTIONS': {'read_default_file': '/etc/edc_senaite_interface/senaite.conf'}}</pre></td>
|
4494
|
</tr>
|
4495
|
|
4496
|
<tr>
|
4497
|
<td>SERVER_EMAIL</td>
|
4498
|
<td class="code"><pre>'root@localhost'</pre></td>
|
4499
|
</tr>
|
4500
|
|
4501
|
<tr>
|
4502
|
<td>SESSION_CACHE_ALIAS</td>
|
4503
|
<td class="code"><pre>'default'</pre></td>
|
4504
|
</tr>
|
4505
|
|
4506
|
<tr>
|
4507
|
<td>SESSION_COOKIE_AGE</td>
|
4508
|
<td class="code"><pre>1209600</pre></td>
|
4509
|
</tr>
|
4510
|
|
4511
|
<tr>
|
4512
|
<td>SESSION_COOKIE_DOMAIN</td>
|
4513
|
<td class="code"><pre>None</pre></td>
|
4514
|
</tr>
|
4515
|
|
4516
|
<tr>
|
4517
|
<td>SESSION_COOKIE_HTTPONLY</td>
|
4518
|
<td class="code"><pre>True</pre></td>
|
4519
|
</tr>
|
4520
|
|
4521
|
<tr>
|
4522
|
<td>SESSION_COOKIE_NAME</td>
|
4523
|
<td class="code"><pre>'sessionid'</pre></td>
|
4524
|
</tr>
|
4525
|
|
4526
|
<tr>
|
4527
|
<td>SESSION_COOKIE_PATH</td>
|
4528
|
<td class="code"><pre>'/'</pre></td>
|
4529
|
</tr>
|
4530
|
|
4531
|
<tr>
|
4532
|
<td>SESSION_COOKIE_SAMESITE</td>
|
4533
|
<td class="code"><pre>'Lax'</pre></td>
|
4534
|
</tr>
|
4535
|
|
4536
|
<tr>
|
4537
|
<td>SESSION_COOKIE_SECURE</td>
|
4538
|
<td class="code"><pre>False</pre></td>
|
4539
|
</tr>
|
4540
|
|
4541
|
<tr>
|
4542
|
<td>SESSION_ENGINE</td>
|
4543
|
<td class="code"><pre>'django.contrib.sessions.backends.db'</pre></td>
|
4544
|
</tr>
|
4545
|
|
4546
|
<tr>
|
4547
|
<td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
|
4548
|
<td class="code"><pre>False</pre></td>
|
4549
|
</tr>
|
4550
|
|
4551
|
<tr>
|
4552
|
<td>SESSION_FILE_PATH</td>
|
4553
|
<td class="code"><pre>None</pre></td>
|
4554
|
</tr>
|
4555
|
|
4556
|
<tr>
|
4557
|
<td>SESSION_SAVE_EVERY_REQUEST</td>
|
4558
|
<td class="code"><pre>False</pre></td>
|
4559
|
</tr>
|
4560
|
|
4561
|
<tr>
|
4562
|
<td>SESSION_SERIALIZER</td>
|
4563
|
<td class="code"><pre>'django.contrib.sessions.serializers.JSONSerializer'</pre></td>
|
4564
|
</tr>
|
4565
|
|
4566
|
<tr>
|
4567
|
<td>SETTINGS_MODULE</td>
|
4568
|
<td class="code"><pre>'flourish.settings'</pre></td>
|
4569
|
</tr>
|
4570
|
|
4571
|
<tr>
|
4572
|
<td>SHORT_DATETIME_FORMAT</td>
|
4573
|
<td class="code"><pre>'Y-m-d h:m'</pre></td>
|
4574
|
</tr>
|
4575
|
|
4576
|
<tr>
|
4577
|
<td>SHORT_DATE_FORMAT</td>
|
4578
|
<td class="code"><pre>'Y-m-d'</pre></td>
|
4579
|
</tr>
|
4580
|
|
4581
|
<tr>
|
4582
|
<td>SIGNING_BACKEND</td>
|
4583
|
<td class="code"><pre>'django.core.signing.TimestampSigner'</pre></td>
|
4584
|
</tr>
|
4585
|
|
4586
|
<tr>
|
4587
|
<td>SILENCED_SYSTEM_CHECKS</td>
|
4588
|
<td class="code"><pre>[]</pre></td>
|
4589
|
</tr>
|
4590
|
|
4591
|
<tr>
|
4592
|
<td>SITE_ID</td>
|
4593
|
<td class="code"><pre>40</pre></td>
|
4594
|
</tr>
|
4595
|
|
4596
|
<tr>
|
4597
|
<td>STATICFILES_DIRS</td>
|
4598
|
<td class="code"><pre>[]</pre></td>
|
4599
|
</tr>
|
4600
|
|
4601
|
<tr>
|
4602
|
<td>STATICFILES_FINDERS</td>
|
4603
|
<td class="code"><pre>['django.contrib.staticfiles.finders.FileSystemFinder',
|
4604
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder']</pre></td>
|
4605
|
</tr>
|
4606
|
|
4607
|
<tr>
|
4608
|
<td>STATICFILES_STORAGE</td>
|
4609
|
<td class="code"><pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre></td>
|
4610
|
</tr>
|
4611
|
|
4612
|
<tr>
|
4613
|
<td>STATIC_ROOT</td>
|
4614
|
<td class="code"><pre>'/home/flourish/source/flourish/flourish/static'</pre></td>
|
4615
|
</tr>
|
4616
|
|
4617
|
<tr>
|
4618
|
<td>STATIC_URL</td>
|
4619
|
<td class="code"><pre>'/static/'</pre></td>
|
4620
|
</tr>
|
4621
|
|
4622
|
<tr>
|
4623
|
<td>TELEPHONE_REGEX</td>
|
4624
|
<td class="code"><pre>'^[2-8]{1}[0-9]{6}$'</pre></td>
|
4625
|
</tr>
|
4626
|
|
4627
|
<tr>
|
4628
|
<td>TEMPLATES</td>
|
4629
|
<td class="code"><pre>[{'APP_DIRS': True,
|
4630
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
4631
|
'DIRS': [],
|
4632
|
'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
|
4633
|
'django.template.context_processors.request',
|
4634
|
'django.contrib.auth.context_processors.auth',
|
4635
|
'django.contrib.messages.context_processors.messages']}}]</pre></td>
|
4636
|
</tr>
|
4637
|
|
4638
|
<tr>
|
4639
|
<td>TEST_NON_SERIALIZED_APPS</td>
|
4640
|
<td class="code"><pre>[]</pre></td>
|
4641
|
</tr>
|
4642
|
|
4643
|
<tr>
|
4644
|
<td>TEST_RUNNER</td>
|
4645
|
<td class="code"><pre>'django.test.runner.DiscoverRunner'</pre></td>
|
4646
|
</tr>
|
4647
|
|
4648
|
<tr>
|
4649
|
<td>THOUSAND_SEPARATOR</td>
|
4650
|
<td class="code"><pre>','</pre></td>
|
4651
|
</tr>
|
4652
|
|
4653
|
<tr>
|
4654
|
<td>TIME_FORMAT</td>
|
4655
|
<td class="code"><pre>'P'</pre></td>
|
4656
|
</tr>
|
4657
|
|
4658
|
<tr>
|
4659
|
<td>TIME_INPUT_FORMATS</td>
|
4660
|
<td class="code"><pre>['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']</pre></td>
|
4661
|
</tr>
|
4662
|
|
4663
|
<tr>
|
4664
|
<td>TIME_ZONE</td>
|
4665
|
<td class="code"><pre>'Africa/Gaborone'</pre></td>
|
4666
|
</tr>
|
4667
|
|
4668
|
<tr>
|
4669
|
<td>USE_I18N</td>
|
4670
|
<td class="code"><pre>True</pre></td>
|
4671
|
</tr>
|
4672
|
|
4673
|
<tr>
|
4674
|
<td>USE_L10N</td>
|
4675
|
<td class="code"><pre>False</pre></td>
|
4676
|
</tr>
|
4677
|
|
4678
|
<tr>
|
4679
|
<td>USE_THOUSAND_SEPARATOR</td>
|
4680
|
<td class="code"><pre>False</pre></td>
|
4681
|
</tr>
|
4682
|
|
4683
|
<tr>
|
4684
|
<td>USE_TZ</td>
|
4685
|
<td class="code"><pre>True</pre></td>
|
4686
|
</tr>
|
4687
|
|
4688
|
<tr>
|
4689
|
<td>USE_X_FORWARDED_HOST</td>
|
4690
|
<td class="code"><pre>False</pre></td>
|
4691
|
</tr>
|
4692
|
|
4693
|
<tr>
|
4694
|
<td>USE_X_FORWARDED_PORT</td>
|
4695
|
<td class="code"><pre>False</pre></td>
|
4696
|
</tr>
|
4697
|
|
4698
|
<tr>
|
4699
|
<td>WSGI_APPLICATION</td>
|
4700
|
<td class="code"><pre>'flourish.wsgi.application'</pre></td>
|
4701
|
</tr>
|
4702
|
|
4703
|
<tr>
|
4704
|
<td>X_FRAME_OPTIONS</td>
|
4705
|
<td class="code"><pre>'DENY'</pre></td>
|
4706
|
</tr>
|
4707
|
|
4708
|
<tr>
|
4709
|
<td>YEAR_MONTH_FORMAT</td>
|
4710
|
<td class="code"><pre>'F Y'</pre></td>
|
4711
|
</tr>
|
4712
|
|
4713
|
</tbody>
|
4714
|
</table>
|
4715
|
|
4716
|
</div>
|
4717
|
|
4718
|
<div id="explanation">
|
4719
|
<p>
|
4720
|
You're seeing this error because you have <code>DEBUG = True</code> in your
|
4721
|
Django settings file. Change that to <code>False</code>, and Django will
|
4722
|
display a standard page generated by the handler for this status code.
|
4723
|
</p>
|
4724
|
</div>
|
4725
|
|
4726
|
|
4727
|
|
4728
|
</body></html>
|