-
Notifications
You must be signed in to change notification settings - Fork 9
Attribute Error (This QueryDict instance is immutable) when editing a resource #559
Description
Not sure the exact cause of this, possibly similar to #558 ?
Info/stacktrace:
Internal Server Error: /resource/edit/1/579/
AttributeError at /resource/edit/1/579/
This QueryDict instance is immutable
Request Method: POST
Request URL: https://health-orb.org/resource/edit/1/579/
Django Version: 1.11.15
Python Executable: /usr/bin/python
Python Version: 2.7.12
Traceback:
File "/home/www/platform/env/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/www/platform/env/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/home/www/platform/env/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/www/platform/env/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/www/platform/django-mpowering/orb/views.py" in resource_edit_view
481. initial['image'] = resource.image
File "/home/www/platform/env/lib/python2.7/site-packages/django/http/request.py" in setitem
434. self._assert_mutable()
File "/home/www/platform/env/lib/python2.7/site-packages/django/http/request.py" in _assert_mutable
431. raise AttributeError("This QueryDict instance is immutable")
Exception Type: AttributeError at /resource/edit/1/579/
Exception Value: This QueryDict instance is immutable
Request information:
GET: No GET data
POST:
terms = u'on'
attribution = u''
description = u'
With funding from UK aid, the GSMA developed the nutrition content together with its global content partners consisting of five different organisations: ILRI, OXFAM, GAIN, CABI and British Journal of Medicine and Medical Research. Local content partners (LCPs) developed nutrition factsheets to inform the development of different content batches. This content was subjected to user testing and improved accordingly. For each market, the Ministry of Health was involved in the content development and approved the content in the form of an official validation letter.
\r\nThis mobile-ready nutrition content was developed for eight markets in Sub-Saharan Africa. While in most of the countries, the content mainly focuses on maternal, newborn and child health and nutrition, some additional content was created to meet government priorities. Content is available in local languages in SMS form and as voice transcripts, ready for recording into Interactive Voice Response messages.
\r\nThe Malawi SMS and IVR transcripts are available in English, Chichewa and Tumbuka.
'license = u'80'
title = u'Maternal, infant and young child, nutrition mobile content: Malawi'
image = u''
organisations = u'British Journal of Medicine and Medical Research,CABI,DFID,GAIN,GSMA,ILRI,OXFAM'
health_topic = u'758'
languages = u'Chichewa,English,Tumbuka'
audience = u'18'
submit = u'Continue >>'
device = u'11'
other_tags = u'breastfeeding,fortification,infant,maternal and newborn care,maternal health,pregnancy,supplementation'
geography = u'Malawi'
study_time_number = u'0'
resource_type = u'20'
study_time_unit = u'mins'
FILES: No FILES data