muccg / angelman

RDRF based software for the Global Angelman Registry
GNU Affero General Public License v3.0
1 stars 0 forks source link

error saving sleep form #234

Open id2359 opened 6 years ago

id2359 commented 6 years ago

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:
'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.._dec.._wrapper..bound_func at 0x7f2253fbf2f0> decorate
<function method_decorator.._dec..decorate at 0x7f22549cb0d0> func
<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.. at 0x7f22541a0b70> view_func
<function method_decorator.._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
(<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

form_class form_data [{}] form_display_name 'AngelmanRegistrySleep' form_id '75' form_instance form_obj form_section {'ANGBEHDEVSLEEPDIARY': , 'ANGBEHDEVSLEEPGENERAL': , 'ANGVerified': } form_set_class formset formset_prefixes {'ANGBEHDEVSLEEPDIARY': 'formset_ANGBEHDEVSLEEPDIARY'} i 0 ids {'ANGBEHDEVSLEEPDIARY': 209, 'ANGBEHDEVSLEEPGENERAL': 208, 'ANGVerified': 172} index_map {0: 3} initial_forms_ids {'ANGBEHDEVSLEEPDIARY': 'id_formset_ANGBEHDEVSLEEPDIARY-INITIAL_FORMS'} patient patient_id '644' prefix 'formset_ANGBEHDEVSLEEPDIARY' progress_dict {} registry registry_code 'ang' request s 'ANGBEHDEVSLEEPDIARY' section_dict {'ANGBEHDEVSLEEPDIARY': [{}], 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810)} section_element_map {'ANGBEHDEVSLEEPDIARY': ['ANGBEHDEVSLEEPDAY', 'ANGBEHDEVBEDTIME', 'ANGBEHDEVSLEEPTIME', 'ANGBEHDEVTIMESWOKE', 'ANGBEHDEVLONGESTTIME', 'ANGBEHDEVWAKETIME', 'ANGBEHDEVNAPNO', 'ANGBEHDEVNAPDUR'], 'ANGBEHDEVSLEEPGENERAL': ['ANGBEHDEVGOODSLEEP', 'ANGBEHDEVSLEEPNIGHTYEARS', 'ANGBEHDEVSLEEPNIGHTMONTHS', 'ANGRegularSleepingPattern', 'ANGRegularSleepingPatternOTH', 'ANGBEHDEVTROUBLESLEEP', 'ANGWAKENIGHT', 'ANGBEHDEVWAKEEARLY', 'ANGBEHDEVPARENTNEEDED'], 'ANGVerified': ['ANGVerified']} section_elements ['ANGBEHDEVSLEEPDAY', 'ANGBEHDEVBEDTIME', 'ANGBEHDEVSLEEPTIME', 'ANGBEHDEVTIMESWOKE', 'ANGBEHDEVLONGESTTIME', 'ANGBEHDEVWAKETIME', 'ANGBEHDEVNAPNO', 'ANGBEHDEVNAPDUR'] section_field_ids_map {'ANGBEHDEVSLEEPDIARY': 'AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPDAY,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO,AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR', 'ANGBEHDEVSLEEPGENERAL': 'AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVGOODSLEEP,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTYEARS,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTMONTHS,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPattern,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPatternOTH,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVTROUBLESLEEP,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGWAKENIGHT,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVWAKEEARLY,AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVPARENTNEEDED', 'ANGVerified': ''} section_index 2 section_info section_model sections ['ANGVerified', 'ANGBEHDEVSLEEPGENERAL', 'ANGBEHDEVSLEEPDIARY'] sections_to_save [, , ] self to_remove [0, 1, 2, 4, 5, 6] total_forms_ids {'ANGBEHDEVSLEEPDIARY': 'id_formset_ANGBEHDEVSLEEPDIARY-TOTAL_FORMS'} /env/src/django-rdrf/rdrf/rdrf/form_view.py in save index_map=self.index_map) Local Vars Variable Value self /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in save_dynamic_data django_instance=self.obj) Local Vars 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 /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in parse_form_data parse_all_forms, django_instance).nested_data Local Vars Variable Value data {'ANGBEHDEVSLEEPDIARY': [{}], 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810)} django_instance existing_record {'AngelmanRegistryBehaviourAndDevelopment_timestamp': '2018-01-29T21:55:26.436026', 'AngelmanRegistryHistoryOfDiagnosisAndResults_timestamp': '2018-01-29T20:53:46.215291', 'AngelmanRegistryIllnessesOrMedicalProblems_timestamp': '2018-01-29T21:07:39.281847', 'AngelmanRegistryMedicalHistory_timestamp': '2018-01-29T21:09:27.038963', 'AngelmanRegistryMedicationIntervention_timestamp': '2018-01-29T21:59:12.621415', 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'context_id': 1048, 'django_id': 644, 'django_model': 'Patient', 'forms': [{'name': 'AngelmanRegistryHistoryOfDiagnosisAndResults', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGAgeDiagnosis', 'value': 4}, {'code': 'ANGAgeDiagnosisMonth', 'value': 7.0}, {'code': 'ANGCurrentPatientAge', 'value': '5'}, {'code': 'ANGWhoMadeDiagnosis', 'value': ['ANGDiagnosisGeneticist']}, {'code': 'ANGDiagnosisOther', 'value': ''}, {'code': 'ANGNeurologicalSymptoms', 'value': ['ANGDevelopmentalDelay', 'ANGLackLanguage', 'ANGNeuroOther']}, {'code': 'ANGHistoryOther', 'value': 'insomnia'}, {'code': 'ANGMisdiagnosis', 'value': []}, {'code': 'ANGMisdiagnosisOTH', 'value': ''}, {'code': 'ANGDualDX', 'value': 'n_'}, {'code': 'ANGDualDxWhat', 'value': ''}], 'code': 'ANGHistoryOfDiagnosis'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGeneticTest', 'value': 'YesNoUnknownYes'}, {'code': 'ANGGeneticTestType', 'value': []}, {'code': 'ANGDNAMethylAbnormalResult', 'value': 'ANGMosaic'}], 'code': 'ANGPatientResults'}, {'allow_multiple': True, 'cdes': [[{'code': 'ANGBloodResultFile', 'value': {'django_file_id': 132, 'file_name': 'AM ' 'Diagnose.pdf'}}]], 'code': 'ANGResultFile'}]}, {'name': 'AngelmanRegistryIllnessesOrMedicalProblems', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGPneumonia', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaAspiration', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaFreq', 'value': ''}, {'code': 'ANGPneumoniaSever', 'value': ''}, {'code': 'ANGRespiratory', 'value': 'n_'}, {'code': 'ANGRespiratoryOth', 'value': ''}], 'code': 'ANGPneumonia'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGStrepThroat', 'value': 'YesNoUnknownNo'}, {'code': 'ANGStrepThroatFreq', 'value': ''}, {'code': 'ANGStrepThroatSever', 'value': ''}], 'code': 'ANGStrepThroatSec'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGastr... form is_multisection True parse_all_forms False registry /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in nested_data section_dict = self._get_section_dict(form_model, section_model, d) Local Vars Variable Value d {'AngelmanRegistryBehaviourAndDevelopment_timestamp': '2018-01-29T21:55:26.436026', 'AngelmanRegistryHistoryOfDiagnosisAndResults_timestamp': '2018-01-29T20:53:46.215291', 'AngelmanRegistryIllnessesOrMedicalProblems_timestamp': '2018-01-29T21:07:39.281847', 'AngelmanRegistryMedicalHistory_timestamp': '2018-01-29T21:09:27.038963', 'AngelmanRegistryMedicationIntervention_timestamp': '2018-01-29T21:59:12.621415', 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'context_id': 1048, 'django_id': 644, 'django_model': 'Patient', 'forms': [{'name': 'AngelmanRegistryHistoryOfDiagnosisAndResults', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGAgeDiagnosis', 'value': 4}, {'code': 'ANGAgeDiagnosisMonth', 'value': 7.0}, {'code': 'ANGCurrentPatientAge', 'value': '5'}, {'code': 'ANGWhoMadeDiagnosis', 'value': ['ANGDiagnosisGeneticist']}, {'code': 'ANGDiagnosisOther', 'value': ''}, {'code': 'ANGNeurologicalSymptoms', 'value': ['ANGDevelopmentalDelay', 'ANGLackLanguage', 'ANGNeuroOther']}, {'code': 'ANGHistoryOther', 'value': 'insomnia'}, {'code': 'ANGMisdiagnosis', 'value': []}, {'code': 'ANGMisdiagnosisOTH', 'value': ''}, {'code': 'ANGDualDX', 'value': 'n_'}, {'code': 'ANGDualDxWhat', 'value': ''}], 'code': 'ANGHistoryOfDiagnosis'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGeneticTest', 'value': 'YesNoUnknownYes'}, {'code': 'ANGGeneticTestType', 'value': []}, {'code': 'ANGDNAMethylAbnormalResult', 'value': 'ANGMosaic'}], 'code': 'ANGPatientResults'}, {'allow_multiple': True, 'cdes': [[{'code': 'ANGBloodResultFile', 'value': {'django_file_id': 132, 'file_name': 'AM ' 'Diagnose.pdf'}}]], 'code': 'ANGResultFile'}]}, {'name': 'AngelmanRegistryIllnessesOrMedicalProblems', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGPneumonia', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaAspiration', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaFreq', 'value': ''}, {'code': 'ANGPneumoniaSever', 'value': ''}, {'code': 'ANGRespiratory', 'value': 'n_'}, {'code': 'ANGRespiratoryOth', 'value': ''}], 'code': 'ANGPneumonia'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGStrepThroat', 'value': 'YesNoUnknownNo'}, {'code': 'ANGStrepThroatFreq', 'value': ''}, {'code': 'ANGStrepThroatSever', 'value': ''}], 'code': 'ANGStrepThroatSec'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGastr... form_model None form_timestamp 'AngelmanRegistrySleep_timestamp' items_list [[]] section_model None self /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in _get_section_dict form_dict = self._get_form_dict(form_model, data) Local Vars Variable Value data {'AngelmanRegistryBehaviourAndDevelopment_timestamp': '2018-01-29T21:55:26.436026', 'AngelmanRegistryHistoryOfDiagnosisAndResults_timestamp': '2018-01-29T20:53:46.215291', 'AngelmanRegistryIllnessesOrMedicalProblems_timestamp': '2018-01-29T21:07:39.281847', 'AngelmanRegistryMedicalHistory_timestamp': '2018-01-29T21:09:27.038963', 'AngelmanRegistryMedicationIntervention_timestamp': '2018-01-29T21:59:12.621415', 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'context_id': 1048, 'django_id': 644, 'django_model': 'Patient', 'forms': [{'name': 'AngelmanRegistryHistoryOfDiagnosisAndResults', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGAgeDiagnosis', 'value': 4}, {'code': 'ANGAgeDiagnosisMonth', 'value': 7.0}, {'code': 'ANGCurrentPatientAge', 'value': '5'}, {'code': 'ANGWhoMadeDiagnosis', 'value': ['ANGDiagnosisGeneticist']}, {'code': 'ANGDiagnosisOther', 'value': ''}, {'code': 'ANGNeurologicalSymptoms', 'value': ['ANGDevelopmentalDelay', 'ANGLackLanguage', 'ANGNeuroOther']}, {'code': 'ANGHistoryOther', 'value': 'insomnia'}, {'code': 'ANGMisdiagnosis', 'value': []}, {'code': 'ANGMisdiagnosisOTH', 'value': ''}, {'code': 'ANGDualDX', 'value': 'n_'}, {'code': 'ANGDualDxWhat', 'value': ''}], 'code': 'ANGHistoryOfDiagnosis'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGeneticTest', 'value': 'YesNoUnknownYes'}, {'code': 'ANGGeneticTestType', 'value': []}, {'code': 'ANGDNAMethylAbnormalResult', 'value': 'ANGMosaic'}], 'code': 'ANGPatientResults'}, {'allow_multiple': True, 'cdes': [[{'code': 'ANGBloodResultFile', 'value': {'django_file_id': 132, 'file_name': 'AM ' 'Diagnose.pdf'}}]], 'code': 'ANGResultFile'}]}, {'name': 'AngelmanRegistryIllnessesOrMedicalProblems', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGPneumonia', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaAspiration', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaFreq', 'value': ''}, {'code': 'ANGPneumoniaSever', 'value': ''}, {'code': 'ANGRespiratory', 'value': 'n_'}, {'code': 'ANGRespiratoryOth', 'value': ''}], 'code': 'ANGPneumonia'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGStrepThroat', 'value': 'YesNoUnknownNo'}, {'code': 'ANGStrepThroatFreq', 'value': ''}, {'code': 'ANGStrepThroatSever', 'value': ''}], 'code': 'ANGStrepThroatSec'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGastr... form_model None section_model None self /env/src/django-rdrf/rdrf/rdrf/dynamic_data.py in _get_form_dict if form_dict["name"] == form_model.name: Local Vars Variable Value data {'AngelmanRegistryBehaviourAndDevelopment_timestamp': '2018-01-29T21:55:26.436026', 'AngelmanRegistryHistoryOfDiagnosisAndResults_timestamp': '2018-01-29T20:53:46.215291', 'AngelmanRegistryIllnessesOrMedicalProblems_timestamp': '2018-01-29T21:07:39.281847', 'AngelmanRegistryMedicalHistory_timestamp': '2018-01-29T21:09:27.038963', 'AngelmanRegistryMedicationIntervention_timestamp': '2018-01-29T21:59:12.621415', 'AngelmanRegistrySleep_timestamp': datetime.datetime(2018, 1, 29, 22, 3, 30, 707810), 'context_id': 1048, 'django_id': 644, 'django_model': 'Patient', 'forms': [{'name': 'AngelmanRegistryHistoryOfDiagnosisAndResults', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGAgeDiagnosis', 'value': 4}, {'code': 'ANGAgeDiagnosisMonth', 'value': 7.0}, {'code': 'ANGCurrentPatientAge', 'value': '5'}, {'code': 'ANGWhoMadeDiagnosis', 'value': ['ANGDiagnosisGeneticist']}, {'code': 'ANGDiagnosisOther', 'value': ''}, {'code': 'ANGNeurologicalSymptoms', 'value': ['ANGDevelopmentalDelay', 'ANGLackLanguage', 'ANGNeuroOther']}, {'code': 'ANGHistoryOther', 'value': 'insomnia'}, {'code': 'ANGMisdiagnosis', 'value': []}, {'code': 'ANGMisdiagnosisOTH', 'value': ''}, {'code': 'ANGDualDX', 'value': 'n_'}, {'code': 'ANGDualDxWhat', 'value': ''}], 'code': 'ANGHistoryOfDiagnosis'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGeneticTest', 'value': 'YesNoUnknownYes'}, {'code': 'ANGGeneticTestType', 'value': []}, {'code': 'ANGDNAMethylAbnormalResult', 'value': 'ANGMosaic'}], 'code': 'ANGPatientResults'}, {'allow_multiple': True, 'cdes': [[{'code': 'ANGBloodResultFile', 'value': {'django_file_id': 132, 'file_name': 'AM ' 'Diagnose.pdf'}}]], 'code': 'ANGResultFile'}]}, {'name': 'AngelmanRegistryIllnessesOrMedicalProblems', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGPneumonia', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaAspiration', 'value': 'YesNoUnknownNo'}, {'code': 'ANGPneumoniaFreq', 'value': ''}, {'code': 'ANGPneumoniaSever', 'value': ''}, {'code': 'ANGRespiratory', 'value': 'n_'}, {'code': 'ANGRespiratoryOth', 'value': ''}], 'code': 'ANGPneumonia'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGStrepThroat', 'value': 'YesNoUnknownNo'}, {'code': 'ANGStrepThroatFreq', 'value': ''}, {'code': 'ANGStrepThroatSever', 'value': ''}], 'code': 'ANGStrepThroatSec'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGastr... form_dict {'name': 'AngelmanRegistryHistoryOfDiagnosisAndResults', 'sections': [{'allow_multiple': False, 'cdes': [{'code': 'ANGAgeDiagnosis', 'value': 4}, {'code': 'ANGAgeDiagnosisMonth', 'value': 7.0}, {'code': 'ANGCurrentPatientAge', 'value': '5'}, {'code': 'ANGWhoMadeDiagnosis', 'value': ['ANGDiagnosisGeneticist']}, {'code': 'ANGDiagnosisOther', 'value': ''}, {'code': 'ANGNeurologicalSymptoms', 'value': ['ANGDevelopmentalDelay', 'ANGLackLanguage', 'ANGNeuroOther']}, {'code': 'ANGHistoryOther', 'value': 'insomnia'}, {'code': 'ANGMisdiagnosis', 'value': []}, {'code': 'ANGMisdiagnosisOTH', 'value': ''}, {'code': 'ANGDualDX', 'value': 'n_'}, {'code': 'ANGDualDxWhat', 'value': ''}], 'code': 'ANGHistoryOfDiagnosis'}, {'allow_multiple': False, 'cdes': [{'code': 'ANGGeneticTest', 'value': 'YesNoUnknownYes'}, {'code': 'ANGGeneticTestType', 'value': []}, {'code': 'ANGDNAMethylAbnormalResult', 'value': 'ANGMosaic'}], 'code': 'ANGPatientResults'}, {'allow_multiple': True, 'cdes': [[{'code': 'ANGBloodResultFile', 'value': {'django_file_id': 132, 'file_name': 'AM Diagnose.pdf'}}]], 'code': 'ANGResultFile'}]} form_model None self Request information USER Patrick_2@nexgo.de GET No GET data POST Variable Value csrfmiddlewaretoken 'XfEtWmrg6Iq4gT6WcZspdLa66MNjSrEnukG9x13FQ3D6wULir7bqBP2uMDE9PSCG' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVGOODSLEEP '5' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTYEARS '1' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTMONTHS '' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPattern '2YesMost' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPatternOTH '' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVTROUBLESLEEP '3YesSome' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGWAKENIGHT '2YesHelp' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVWAKEEARLY '1YesAll' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVPARENTNEEDED '3YesSome' formset_ANGBEHDEVSLEEPDIARY-TOTAL_FORMS '7' formset_ANGBEHDEVSLEEPDIARY-INITIAL_FORMS '1' formset_ANGBEHDEVSLEEPDIARY-MIN_NUM_FORMS '0' formset_ANGBEHDEVSLEEPDIARY-MAX_NUM_FORMS '1000' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPDAY 'Monday' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-0-DELETE 'on' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-1-DELETE 'on' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-2-DELETE 'on' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-4-DELETE 'on' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-5-DELETE 'on' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR '' formset_ANGBEHDEVSLEEPDIARY-6-DELETE 'on' FILES No FILES data COOKIES Variable Value csrf_rdrf_rdrf '8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50' rdrf_rdrf '4i54ko71ipf4nraosglkn3b6uuvjn1el' META Variable Value CONTENT_LENGTH '13616' CONTENT_TYPE 'multipart/form-data; boundary=---------------------------34472349316608' CSRF_COOKIE '8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50' DOCUMENT_ROOT '/data/www/angelmanregistry.info' HTTPS 'on' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_ENCODING 'gzip, deflate, br' HTTP_ACCEPT_LANGUAGE 'de,en-US;q=0.7,en;q=0.3' HTTP_CONNECTION 'keep-alive' HTTP_CONTENT_LENGTH '13616' HTTP_CONTENT_TYPE 'multipart/form-data; boundary=---------------------------34472349316608' HTTP_COOKIE ('csrf_rdrf_rdrf=8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50; ' 'rdrf_rdrf=4i54ko71ipf4nraosglkn3b6uuvjn1el') HTTP_DNT '1' ... [Message clipped] View entire message no-reply@mg.ccgapps.com.au 10:03 PM (11 hours ago) to rdrf Internal Server Error: /rdrf/ang/forms/75/644/1048 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 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:34 +0800 Installed Applications: ['angelman', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.messages', 'django_extensions', 'django.contrib.admin', 'messages_ui', 'ajax_select', 'explorer', 'useraudit', 'templatetag_handlebars', 'iprestrict', 'rest_framework', 'anymail', 'rdrf', 'registry.groups', 'registry.patients', 'registry.common', 'registry.genetic', 'registration', 'storages', 'django_cron', 'django_otp', 'django_otp.plugins.otp_static', 'django_otp.plugins.otp_totp', 'two_factor'] Installed Middleware: ('useraudit.middleware.RequestToThreadLocalMiddleware', 'django.middleware.common.CommonMiddleware', 'iprestrict.middleware.IPRestrictMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_otp.middleware.OTPMiddleware', 'registry.common.middleware.EnforceTwoFactorAuthMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware') Traceback: File "/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 42. response = get_response(request) File "/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/env/lib/python3.6/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/env/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper 67. return bound_func(*args, **kwargs) File "/env/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "/env/lib/python3.6/site-packages/django/utils/decorators.py" in bound_func 63. return func.__get__(self, type(self))(*args2, **kwargs2) File "/env/src/django-rdrf/rdrf/rdrf/form_view.py" in post 531. section_info.save() File "/env/src/django-rdrf/rdrf/rdrf/form_view.py" in save 164. index_map=self.index_map) File "/env/src/django-rdrf/rdrf/rdrf/dynamic_data.py" in save_dynamic_data 689. django_instance=self.obj) File "/env/src/django-rdrf/rdrf/rdrf/dynamic_data.py" in parse_form_data 173. parse_all_forms, django_instance).nested_data File "/env/src/django-rdrf/rdrf/rdrf/dynamic_data.py" in nested_data 259. section_dict = self._get_section_dict(form_model, section_model, d) File "/env/src/django-rdrf/rdrf/rdrf/dynamic_data.py" in _get_section_dict 385. form_dict = self._get_form_dict(form_model, data) File "/env/src/django-rdrf/rdrf/rdrf/dynamic_data.py" in _get_form_dict 395. if form_dict["name"] == form_model.name: Exception Type: AttributeError at /ang/forms/75/644/1048 Exception Value: 'NoneType' object has no attribute 'name' Request information: USER: Patrick_2@nexgo.de GET: No GET data POST: csrfmiddlewaretoken = 'XfEtWmrg6Iq4gT6WcZspdLa66MNjSrEnukG9x13FQ3D6wULir7bqBP2uMDE9PSCG' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVGOODSLEEP = '5' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTYEARS = '1' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVSLEEPNIGHTMONTHS = '' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPattern = '2YesMost' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGRegularSleepingPatternOTH = '' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVTROUBLESLEEP = '3YesSome' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGWAKENIGHT = '2YesHelp' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVWAKEEARLY = '1YesAll' AngelmanRegistrySleep____ANGBEHDEVSLEEPGENERAL____ANGBEHDEVPARENTNEEDED = '3YesSome' formset_ANGBEHDEVSLEEPDIARY-TOTAL_FORMS = '7' formset_ANGBEHDEVSLEEPDIARY-INITIAL_FORMS = '1' formset_ANGBEHDEVSLEEPDIARY-MIN_NUM_FORMS = '0' formset_ANGBEHDEVSLEEPDIARY-MAX_NUM_FORMS = '1000' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-__prefix__-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPDAY = 'Monday' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-0-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-0-DELETE = 'on' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-1-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-1-DELETE = 'on' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-2-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-2-DELETE = 'on' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-3-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-4-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-4-DELETE = 'on' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-5-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-5-DELETE = 'on' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVBEDTIME = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVSLEEPTIME = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVTIMESWOKE = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVLONGESTTIME = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVWAKETIME = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPNO = '' formset_ANGBEHDEVSLEEPDIARY-6-AngelmanRegistrySleep____ANGBEHDEVSLEEPDIARY____ANGBEHDEVNAPDUR = '' formset_ANGBEHDEVSLEEPDIARY-6-DELETE = 'on' FILES: No FILES data COOKIES: csrf_rdrf_rdrf = '8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50' rdrf_rdrf = '4i54ko71ipf4nraosglkn3b6uuvjn1el' META: CONTENT_LENGTH = '13616' CONTENT_TYPE = 'multipart/form-data; boundary=---------------------------34472349316608' CSRF_COOKIE = '8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50' DOCUMENT_ROOT = '/data/www/angelmanregistry.info' HTTPS = 'on' HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_ENCODING = 'gzip, deflate, br' HTTP_ACCEPT_LANGUAGE = 'de,en-US;q=0.7,en;q=0.3' HTTP_CONNECTION = 'keep-alive' HTTP_CONTENT_LENGTH = '13616' HTTP_CONTENT_TYPE = 'multipart/form-data; boundary=---------------------------34472349316608' HTTP_COOKIE = 'csrf_rdrf_rdrf=8zx8EV7CqBGiCuuJvDHm3mAHXGAUwl7HFEzOfAJ1aWTkSv95KLqnrqs5DxrKtM50; rdrf_rdrf=4i54ko71ipf4nraosglkn3b6uuvjn1el' HTTP_DNT = '1' HTTP_HOST = 'angelmanregistry.info' HTTP_REFERER = 'https://angelmanregistry.info/rdrf/ang/forms/75/644/1048' HTTP_SCRIPT_NAME = '/rdrf' HTTP_UPGRADE_INSECURE_REQUESTS = '1' HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0' PATH_INFO = '/ang/forms/75/644/1048' QUERY_STRING = '' REMOTE_ADDR = '217.6.32.148' REMOTE_PORT = '39150' REQUEST_METHOD = 'POST' REQUEST_SCHEME = 'https' REQUEST_URI = '/rdrf/ang/forms/75/644/1048' SCRIPT_NAME = '/rdrf' SERVER_NAME = 'angelmanregistry.info' SERVER_PORT = '4008' SERVER_PROTOCOL = 'HTTP/1.1' uwsgi.core = 0 uwsgi.node = b'angelman' uwsgi.version = b'2.0.13.1' wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> wsgi.file_wrapper = '' wsgi.input = wsgi.multiprocess = True wsgi.multithread = True wsgi.run_once = False wsgi.url_scheme = 'https' wsgi.version = Settings: Using settings module angelman.settings ABSOLUTE_URL_OVERRIDES = {} ACCOUNT_ACTIVATION_DAYS = 2 ACCOUNT_EXPIRY_DAYS = 100 ACCOUNT_SELF_UNLOCK_ENABLED = True ADMINS = [('alerts', 'rdrf@ccg.murdoch.edu.au')] AJAX_LOOKUP_CHANNELS = {'gene': {'model': 'genetic.Gene', 'search_field': 'symbol'}} ALLOWED_HOSTS = ['localhost', '.angelmanregistry.info'] ALL_LANGUAGES = ANGELMAN_WEBAPP_ROOT = '/app/angelman' ANYMAIL = {'MAILGUN_API_KEY': '********************'} APPEND_SLASH = True AUTHENTICATION_BACKENDS = ['useraudit.password_expiry.AccountExpiryBackend', 'django.contrib.auth.backends.ModelBackend', 'useraudit.backend.AuthFailedLoggerBackend'] AUTH_PASSWORD_VALIDATORS = '********************' AUTH_PROFILE_MODULE = 'groups.User' AUTH_USER_MODEL = 'groups.CustomUser' AUTH_USER_MODEL_PASSWORD_CHANGE_DATE_ATTR = '********************' CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': ['memcached:11211'], 'KEY_PREFIX': '********************'}} CACHE_MIDDLEWARE_ALIAS = 'default' CACHE_MIDDLEWARE_KEY_PREFIX = '********************' CACHE_MIDDLEWARE_SECONDS = 600 CRON_CLASSES = [] CSRF_COOKIE_AGE = 31449600 CSRF_COOKIE_DOMAIN = '.angelmanregistry.info' CSRF_COOKIE_HTTPONLY = True CSRF_COOKIE_NAME = 'csrf_rdrf_rdrf' CSRF_COOKIE_PATH = '/rdrf/' CSRF_COOKIE_SECURE = True CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure' CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS = ['.angelmanregistry.info'] DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'angelman', 'USER': 'angelman', 'PASSWORD': '********************', 'HOST': 'rdrf4.rdrfint.ccgapps.com.au', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}, 'clinical': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'angelman', 'USER': 'angelman', 'PASSWORD': '********************', 'HOST': 'rdrf1.rdrfint.ccgapps.com.au', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}, 'reporting': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'angelman', 'USER': 'angelman', 'PASSWORD': '********************', 'HOST': 'rdrf4.rdrfint.ccgapps.com.au', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}} DATABASE_HOST = 'rdrf4.rdrfint.ccgapps.com.au' DATABASE_NAME = 'angelman' DATABASE_ODBC_DRIVER = '{PostgreSQL}' DATABASE_PASSWORD = '********************' DATABASE_ROUTERS = ['rdrf.db.RegistryRouter'] DATABASE_USER = 'angelman' DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS = 30000 DATETIME_FORMAT = 'N j, Y, P' DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] DATE_FORMAT = 'N j, Y' DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] DB_FILES = {'db_table': 'rdrf_filestorage', 'fname_column': 'name', 'blob_column': 'data', 'size_column': 'size', 'base_url': None} DEBUG = False DEBUG_PROPAGATE_EXCEPTIONS = False DECIMAL_SEPARATOR = '.' DEFAULT_CHARSET = 'utf-8' DEFAULT_CONTENT_TYPE = 'text/html' DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL = 'no-reply@mg.ccgapps.com.au' DEFAULT_INDEX_TABLESPACE = '' DEFAULT_TABLESPACE = '' DESIGN_MODE = False DISALLOWED_USER_AGENTS = [] EMAIL_APP_NAME = 'RDRF /rdrf' EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend' EMAIL_HOST = 'smtp' EMAIL_HOST_PASSWORD = '********************' EMAIL_HOST_USER = 'webmaster@localhost' EMAIL_PORT = 25 EMAIL_SSL_CERTFILE = None EMAIL_SSL_KEYFILE = '********************' EMAIL_SUBJECT_PREFIX = 'PROD_angelman' EMAIL_TIMEOUT = None EMAIL_USE_SSL = False EMAIL_USE_TLS = False FALLBACK_REGISTRY_CODE = 'angelman' FILE_CHARSET = 'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS = None FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 FILE_UPLOAD_PERMISSIONS = None FILE_UPLOAD_TEMP_DIR = None FIRST_DAY_OF_WEEK = 0 FIXTURE_DIRS = [] FORCE_SCRIPT_NAME = '/rdrf' FORMAT_MODULE_PATH = None FORM_SECTION_DELIMITER = '____' GEOIP_PATH = '/env/src/django-rdrf/rdrf/geoip' IGNORABLE_404_URLS = [] IMPORT_MODE = False INSTALLED_APPS = ['angelman', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.messages', 'django_extensions', 'django.contrib.admin', 'messages_ui', 'ajax_select', 'explorer', 'useraudit', 'templatetag_handlebars', 'iprestrict', 'rest_framework', 'anymail', 'rdrf', 'registry.groups', 'registry.patients', 'registry.common', 'registry.genetic', 'registration', 'storages', 'django_cron', 'django_otp', 'django_otp.plugins.otp_static', 'django_otp.plugins.otp_totp', 'two_factor'] INSTALL_NAME = 'rdrf' INTERNAL_IPS = IPRESRICT_TRUSTED_PROXIES = [] IPRESTRICT_GEOIP_ENABLED = False IPRESTRICT_IGNORE_PROXY_HEADER = True IPRESTRICT_RELOAD_RULES = True LANGUAGES = ('en', 'English') LANGUAGES_ASSOC_LIST = ['en', 'English'] LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur'] LANGUAGE_CODE = 'en' LANGUAGE_COOKIE_AGE = None LANGUAGE_COOKIE_DOMAIN = None LANGUAGE_COOKIE_NAME = 'django_language' LANGUAGE_COOKIE_PATH = '/' LOCALE_PATHS = ['/data/translations/locale'] LOGGING = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '[%(levelname)s:%(asctime)s:%(filename)s:%(lineno)s:%(funcName)s] %(message)s'}, 'db': {'format': '[%(duration)s:%(sql)s:%(params)s] %(message)s'}, 'simple': {'format': '%(levelname)s %(message)s'}, 'simplest': {'format': '%(message)s'}}, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}, 'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}}, 'handlers': {'null': {'level': 'DEBUG', 'class': 'logging.NullHandler'}, 'console': {'level': 'DEBUG', 'filters': ['require_debug_true'], 'class': 'logging.StreamHandler', 'formatter': 'verbose'}, 'console_simple': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simplest'}, 'shell': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}, 'file': {'level': 'INFO', 'class': 'ccg_django_utils.loghandlers.ParentPathFileHandler', 'filename': '/data/log/registry.log', 'when': 'midnight', 'formatter': 'verbose'}, 'mail_admins': {'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler', 'include_html': True}}, 'loggers': {'': {'handlers': ['console', 'file'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}, 'django.security': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}, 'django.db.backends': {'handlers': ['mail_admins'], 'level': 'CRITICAL', 'propagate': True}, 'rdrf.management.commands': {'handlers': ['shell'], 'level': 'INFO', 'propagate': False}, 'rdrf.export_import': {'handlers': ['console_simple'], 'formatter': 'simplest', 'level': 'INFO', 'propagate': False}}} LOGGING_CONFIG = 'logging.config.dictConfig' LOGIN_FAILURE_LIMIT = 3 LOGIN_REDIRECT_URL = '/rdrf/' LOGIN_URL = '/rdrf/account/login' LOGOUT_REDIRECT_URL = None LOG_DIRECTORY = '/data/log' MANAGERS = [('alerts', 'rdrf@ccg.murdoch.edu.au')] MEDIA_ROOT = '/data/static/media' MEDIA_URL = '/rdrf/uploads/' MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' MESSAGE_TAGS = {40: 'alert alert-danger', 25: 'alert alert-success', 20: 'alert alert-info'} MIDDLEWARE = None MIDDLEWARE_CLASSES = MIGRATION_MODULES = {} MONTH_DAY_FORMAT = 'F j' NUMBER_GROUPING = 0 PASSWORD_EXPIRY_DAYS = '********************' PASSWORD_EXPIRY_WARNING_DAYS = '********************' PASSWORD_HASHERS = '********************' PASSWORD_RESET_TIMEOUT_DAYS = '********************' PREPEND_WWW = False PRODUCTION = True PROJECT_TITLE = 'Global Angelman Syndrome Registry' PROJECT_TITLE_LINK = 'login_router' RECAPTCHA_SECRET_KEY = '********************' RECAPTCHA_SITE_KEY = '********************' REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.DjangoModelPermissions',), 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning', 'DEFAULT_VERSION': 'v1'} ROOT_URLCONF = 'angelman.urls' SCRIPT_NAME = '/rdrf' SECRET_KEY = '********************' SECURE_BROWSER_XSS_FILTER = True SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_HSTS_INCLUDE_SUBDOMAINS = False SECURE_HSTS_SECONDS = 0 SECURE_PROXY_SSL_HEADER = None SECURE_REDIRECT_EXEMPT = [] SECURE_SSL_HOST = False SECURE_SSL_REDIRECT = True SEND_ACTIVATION_EMAIL = False SERVER_EMAIL = 'no-reply@mg.ccgapps.com.au' SESSION_CACHE_ALIAS = 'default' SESSION_COOKIE_AGE = 3600 SESSION_COOKIE_DOMAIN = None SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_NAME = 'rdrf_rdrf' SESSION_COOKIE_PATH = '/rdrf/' SESSION_COOKIE_SECURE = True SESSION_ENGINE = 'django.contrib.sessions.backends.cache' SESSION_EXPIRE_AT_BROWSER_CLOSE = True SESSION_FILE_PATH = None SESSION_SAVE_EVERY_REQUEST = True SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE = 'angelman.settings' SHORT_DATETIME_FORMAT = 'm/d/Y P' SHORT_DATE_FORMAT = 'm/d/Y' SIGNING_BACKEND = 'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS = [] SITE_ID = 1 STATICFILES_DIRS = [] STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT = '/data/static' STATIC_SERVER_PATH = '/data/static' STATIC_URL = '/rdrf/static/' TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/angelman/angelman/templates', '/env/src/django-rdrf/rdrf/rdrf/templates'], 'APP_DIRS': False, 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.request', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'rdrf.context_processors.common_settings'], 'debug': False, 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'rdrf.template_loaders.translation.Loader']}}] TEST_NON_SERIALIZED_APPS = [] TEST_RUNNER = 'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR = ',' TIME_FORMAT = 'P' TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] TIME_ZONE = 'Australia/Perth' USE_ETAGS = False USE_I18N = True USE_L10N = False USE_THOUSAND_SEPARATOR = False USE_TZ = False USE_X_FORWARDED_HOST = True USE_X_FORWARDED_PORT = False WEBAPP_ROOT = '/env/src/django-rdrf/rdrf' WRITABLE_DIRECTORY = '/data/scratch' WSGI_APPLICATION = None X_FRAME_OPTIONS = 'DENY' YEAR_MONTH_FORMAT = 'F Y'
id2359 commented 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 -