adding worker with password missmatch
when adding worker with not matching password there is an error:
KeyError at /doctors/add/STAFF
'password'
Request Method: POST
Request URL: http://localhost:8000/doctors/add/STAFF
Django Version: 1.10.7
Exception Type: KeyError
Exception Value:
'password'
Exception Location: /home/gawi/workspace/scheduling-system/smash/web/forms/worker_form.py in clean, line 89
Python Executable: /home/gawi/workspace/scheduling-system/env/bin/python
Python Version: 2.7.12
Python Path:
['/home/gawi/workspace/scheduling-system/smash',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7/plat-x86_64-linux-gnu',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7/lib-tk',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7/lib-old',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/home/gawi/workspace/scheduling-system/env/local/lib/python2.7/site-packages',
'/home/gawi/workspace/scheduling-system/env/lib/python2.7/site-packages']
Server time: Mon, 9 Jul 2018 12:25:47 +0000