Update models.py

fix：当值为空时，取值多了个,号
Update dashboard.py

fix:it's not working when batch deletes
Merge pull request #59 from wbcyclist/master

fix widget delete bug