corrected function name in views.py, it was setPick, and I was calling set_pick.It is now set_pick .
corrected reference to self reference to wingroups in Board class, made it self.wingroups.