adding edited model. code not working.
edited views.py