changes done models.py to resolve bug page deatils