fixed issues in models.py for notifications