Update models.py

python 2.6-2.7 and django 1.6 same problems solved.
Merge pull request #1 from yildizib/master

Update models.py