ludi1001 / IonMedicationSystem

GNU General Public License v2.0
0 stars 0 forks source link

DIspenser page crashes #1

Closed ludi1001 closed 10 years ago

ludi1001 commented 10 years ago

TypeError at /dispenser/ 'NoneType' object has no attribute 'getitem' Request Method: GET Request URL: http://localhost:8000/dispenser/ Django Version: 1.6.2 Exception Type: TypeError Exception Value:
'NoneType' object has no attribute 'getitem' Exception Location: c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\helper\RxNorm.py in getName, line 24 Python Executable: c:\Python27\python.exe Python Version: 2.7.5 Python Path:
['c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb', 'C:\root\bin', 'C:\Windows\system32\python27.zip', 'c:\Python27\DLLs', 'c:\Python27\lib', 'c:\Python27\lib\plat-win', 'c:\Python27\lib\lib-tk', 'c:\Python27', 'c:\Python27\lib\site-packages'] Server time: Sat, 26 Apr 2014 14:28:28 -0400 Error during template rendering

In template c:\Users\Logan\Desktop\cornellcup\IonMedicationSystem\IonWeb\IonWeb\templates\dispenser.html, error at line 31 'NoneType' object has no attribute 'getitem' 21

My Dispensers

22
23 {% for dispenser in dispensers %} 24

{{ dispenser.location }}

25
leeviana commented 10 years ago

No longer can add empty compartments to dispenser