equal
deleted
inserted
replaced
206 |
206 |
207 # use the standard JSON template to return our response |
207 # use the standard JSON template to return our response |
208 context = {'json': json} |
208 context = {'json': json} |
209 template = 'soc/json.html' |
209 template = 'soc/json.html' |
210 |
210 |
211 response = responses.respond(request, template, context) |
211 return responses.respond(request, template, context) |
212 |
|
213 # if the browser supports HTTP/1.1 |
|
214 # post-check and pre-check and no-store for IE7 |
|
215 response['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0' |
|
216 # if the browser supports HTTP/1.0 |
|
217 response['Pragma'] = 'no-cache' |
|
218 |
|
219 return response |
|
220 |
212 |
221 |
213 |
222 view = View() |
214 view = View() |
223 |
215 |
224 admin = view.admin |
216 admin = view.admin |