@@ -151,6 +151,107 @@ def get_context_data(self, **kwargs):
151
151
)
152
152
ctx ["contactmomenten" ] = [self .get_kcm_data (kcm ) for kcm in kcms ]
153
153
ctx ["question_form" ] = ContactForm (user = self .request .user )
154
+
155
+ # TODO
156
+ import zoneinfo
157
+
158
+ from django .utils import timezone
159
+
160
+ old_date = datetime (
161
+ 2012 , 3 , 3 , 20 , 10 , 50 , tzinfo = zoneinfo .ZoneInfo (key = "Europe/Paris" )
162
+ )
163
+
164
+ ctx ["contactmomenten" ] = [
165
+ KCMDict (
166
+ registered_date = timezone .now (),
167
+ channel = "Contact Formulier" ,
168
+ text = "Mag ik mijn garage veranderen in een kantoor?\n \n " ,
169
+ url = "https://contactmomenten.nl/api/vi1/contactmoment/aaaaaaaa-aaa" ,
170
+ identificatie = "BA321" ,
171
+ type = "test" ,
172
+ onderwerp = "Garage verbouwen" ,
173
+ status = "afgehandeld" ,
174
+ antwoord = "Hier is een vergunning voor nodig vanwege het bestemmingsplan." ,
175
+ ),
176
+ KCMDict (
177
+ registered_date = old_date ,
178
+ channel = "sms" ,
179
+ text = "hello world" ,
180
+ url = "http://example.com" ,
181
+ identificatie = "123" ,
182
+ type = "test" ,
183
+ onderwerp = "foo" ,
184
+ status = "bar" ,
185
+ antwoord = "yes - no - maybe" ,
186
+ ),
187
+ KCMDict (
188
+ registered_date = timezone .now (),
189
+ channel = "sms" ,
190
+ text = "hello world" ,
191
+ url = "http://example.com" ,
192
+ identificatie = "123" ,
193
+ type = "test" ,
194
+ onderwerp = "foo" ,
195
+ status = "bar" ,
196
+ antwoord = "yes - no - maybe" ,
197
+ ),
198
+ KCMDict (
199
+ registered_date = timezone .now (),
200
+ channel = "sms" ,
201
+ text = "hello world" ,
202
+ url = "http://example.com" ,
203
+ identificatie = "123" ,
204
+ type = "test" ,
205
+ onderwerp = "foo" ,
206
+ status = "bar" ,
207
+ antwoord = "yes - no - maybe" ,
208
+ ),
209
+ KCMDict (
210
+ registered_date = timezone .now (),
211
+ channel = "sms" ,
212
+ text = "hello world" ,
213
+ url = "http://example.com" ,
214
+ identificatie = "123" ,
215
+ type = "test" ,
216
+ onderwerp = "foo" ,
217
+ status = "bar" ,
218
+ antwoord = "yes - no - maybe" ,
219
+ ),
220
+ KCMDict (
221
+ registered_date = timezone .now (),
222
+ channel = "sms" ,
223
+ text = "hello world" ,
224
+ url = "http://example.com" ,
225
+ identificatie = "123" ,
226
+ type = "test" ,
227
+ onderwerp = "foo" ,
228
+ status = "bar" ,
229
+ antwoord = "yes - no - maybe" ,
230
+ ),
231
+ KCMDict (
232
+ registered_date = timezone .now (),
233
+ channel = "sms" ,
234
+ text = "hello world" ,
235
+ url = "http://example.com" ,
236
+ identificatie = "123" ,
237
+ type = "test" ,
238
+ onderwerp = "foo" ,
239
+ status = "bar" ,
240
+ antwoord = "yes - no - maybe" ,
241
+ ),
242
+ KCMDict (
243
+ registered_date = timezone .now (),
244
+ channel = "sms" ,
245
+ text = "hello world" ,
246
+ url = "http://example.com" ,
247
+ identificatie = "123" ,
248
+ type = "test" ,
249
+ onderwerp = "foo" ,
250
+ status = "bar" ,
251
+ antwoord = "yes - no - maybe" ,
252
+ ),
253
+ ]
254
+
154
255
paginator_dict = self .paginate_with_context (ctx ["contactmomenten" ])
155
256
ctx .update (paginator_dict )
156
257
return ctx
0 commit comments