Open id2359 opened 6 years ago
Variable | Value |
---|---|
additional_data | None |
collection_name | 'cdes' |
form_data | {'ANGBEHDEVSLEEPDIARY': [{}], 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810)} |
form_timestamp_key | 'AngelmanRegistrySleep_timestamp' |
index_map | {0: 3} |
multisection | True |
parse_all_forms | False |
record | Error in formatting: TypeError: Object of type 'datetime' is not JSON serializable |
registry | 'ang' |
self | <rdrf.dynamic_data.DynamicDataWrapper object at 0x7f2253e08940> |
serialising a datetime object failing -
I could browse to this patient's sleep form ok , error is in save where the form model is None There is a serialisation issue buried in here also - possibly cause of 1st error somehow
From the post data the user was trying to delete some empty sections of the multisection for the sleep diary
AttributeError at /ang/forms/75/644/1048 'NoneType' object has no attribute 'name' Request Method: POST Request URL: https://angelmanregistry.info/rdrf/ang/forms/75/644/1048 Django Version: 1.10.8 Exception Type: AttributeError Exception Value:._dec.._wrapper..bound_func at 0x7f2253fbf2f0>
decorate._dec..decorate at 0x7f22549cb0d0>
func. at 0x7f22541a0b70>
view_func._dec.._wrapper..bound_func at 0x7f2253e76bf8>
/env/lib/python3.6/site-packages/django/utils/decorators.py in bound_func
return func.get(self, type(self))( args2, kwargs2)
Local Vars
Variable Value
args2
'NoneType' object has no attribute 'name' Exception Location: /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in _get_form_dict, line 395 Python Executable: /env/bin/uwsgi Python Version: 3.6.3 Python Path:
['.', '/app', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/env/lib/python3.6/site-packages', '/env/src/django-rdrf/rdrf', '/app/angelman'] Server time: Mon, 29 Jan 2018 22:03:31 +0800 Traceback /env/lib/python3.6/site-packages/django/core/handlers/exception.py in inner response = get_response(request) Local Vars Variable Value exc AttributeError("'NoneType' object has no attribute 'name'",) get_response
<bound method BaseHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f22543092b0>> request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> /env/lib/python3.6/site-packages/django/core/handlers/base.py in _legacy_get_response response = self._get_response(request) Local Vars Variable Value middleware_method
<bound method SecurityMiddleware.process_request of <django.middleware.security.SecurityMiddleware object at 0x7f225433b160>> request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> response
None self
<django.core.handlers.wsgi.WSGIHandler object at 0x7f22543092b0> /env/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response response = self.process_exception_by_middleware(e, request) Local Vars Variable Value callback
<function FormView at 0x7f22548ac730> callback_args
() callback_kwargs {'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} middleware_method
<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f22543a1fd0>> request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> resolver
<RegexURLResolver 'angelman.urls' (None:None) ^/> resolver_match
ResolverMatch(func=rdrf.form_view.FormView, args=(), kwargs={'registry_code': 'ang', 'form_id': '75', 'patient_id': '644', 'context_id': '1048'}, url_name=registry_form, app_names=[], namespaces=[]) response
None self
<django.core.handlers.wsgi.WSGIHandler object at 0x7f22543092b0> wrapped_callback
<function FormView at 0x7f22548ac730> /env/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response response = wrapped_callback(request, *callback_args, callback_kwargs) Local Vars Variable Value callback
<function FormView at 0x7f22548ac730> callback_args
() callback_kwargs {'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} middleware_method
<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f22543a1fd0>> request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> resolver
<RegexURLResolver 'angelman.urls' (None:None) ^/> resolver_match
ResolverMatch(func=rdrf.form_view.FormView, args=(), kwargs={'registry_code': 'ang', 'form_id': '75', 'patient_id': '644', 'context_id': '1048'}, url_name=registry_form, app_names=[], namespaces=[]) response
None self
<django.core.handlers.wsgi.WSGIHandler object at 0x7f22543092b0> wrapped_callback
<function FormView at 0x7f22548ac730> /env/lib/python3.6/site-packages/django/views/generic/base.py in view return self.dispatch(request, *args, *kwargs) Local Vars Variable Value args
() cls <class 'rdrf.form_view.FormView'> initkwargs
{} kwargs
{'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> self
<rdrf.form_view.FormView object at 0x7f225433b4e0> /env/lib/python3.6/site-packages/django/views/generic/base.py in dispatch return handler(request, args, kwargs) Local Vars Variable Value args
() handler <bound method FormView.post of <rdrf.form_view.FormView object at 0x7f225433b4e0>> kwargs
{'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> self
<rdrf.form_view.FormView object at 0x7f225433b4e0> /env/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper return bound_func(*args, kwargs) Local Vars Variable Value args
(<WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'>,) bound_func
<function method_decorator.
<function method_decorator.
<function FormView.post at 0x7f22549cb048> kwargs
{'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} self
<rdrf.form_view.FormView object at 0x7f225433b4e0> /env/lib/python3.6/site-packages/django/contrib/auth/decorators.py in _wrapped_view return view_func(request, *args, *kwargs) Local Vars Variable Value args
() kwargs
{'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} login_url
None redirect_field_name 'next' request <WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'> test_func
<function login_required.
<function method_decorator.
(<WSGIRequest: POST '/rdrf/ang/forms/75/644/1048'>,) func
<function FormView.post at 0x7f22549cb048> kwargs2 {'context_id': '1048', 'form_id': '75', 'patient_id': '644', 'registry_code': 'ang'} self
<rdrf.form_view.FormView object at 0x7f225433b4e0> /env/src/django-rdrf/rdrf/rdrf/form_view.py in post section_info.save() Local Vars Variable Value all_errors
[] all_sections_valid
True context_id
'1048' current_data
{'ANGHospitalVisit1': [{'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGAgeHospitalVisit1': None, 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGAgeHospitalVisit1MONTH': None, 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospOther1': '', 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospSurgery1': '', 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospitalVisit1AdmissAPPROX': '', 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospitalVisit1AdmissionDate': None, 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospitalVisit1DaysInHospita': None, 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospitalVisit1LevelOfCare': '', 'AngelmanRegistryMedicalHistoryANGHospitalVisit1ANGHospitalVisit1Reason': ''}], 'ANGMedIntCeased': [{'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMEDIntReasonPast': [], 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntAgeStopped': None, 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntAgeStoppedMONTH': None, 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntNameOTH': '', 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntOther': '', 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntReasonStop': [], 'AngelmanRegistryMedicationInterventionANGMedIntCeasedANGMedIntWhatStop': ''}], 'ANGMedIntCurrent': [{'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGDose': '2,5ml ' 'befor ' 'sleep', 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntAgeStarted': 5, 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntAgeStartedMONTH': None, 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntNameOTH': 'Melatonin \r\n' 'Pipamperon', 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntOther': '3g ' 'Melatonin ' 'for ' 'sleep', 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntReason': ['3Sleep'], 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntStrength': '2,5ml', 'AngelmanRegistryMedicationInterventionANGMedIntCurrentANGMedIntWhat': '', 'AngelmanRegistryMedicationInterventionANGMedIntCurrentAngMedIntOften': 'only ' 'for ' 'sleep'}], 'ANGOther': [{'AngelmanRegistryIllnessesOrMedicalProblemsANGOtherANGMedOnsetMonths1': None, 'AngelmanRegistryIllnessesOrMedicalProblemsANGOtherANGMedOnsetWeeks1': None, 'AngelmanRegistryIllnessesOrMedicalProblemsANGOtherANGMedOnsetYears1': None, 'AngelmanRegistryIllnessesOrMedicalProblemsANGOtherANGMedOtherComment1': '', ... <trimmed 41975 bytes string> display_names
{'ANGBEHDEVSLEEPDIARY': 'Sleep Diary', 'ANGBEHDEVSLEEPGENERAL': 'General Sleeping', 'ANGVerified': ' '} dyn_patient <rdrf.dynamic_data.DynamicDataWrapper object at 0x7f2253e08940> dynamic_data
[{}] error_count 0 extra
6 form