Update models.py

fixed history bug