modified the notifications model. the sent_to is now a foreign key. now if we have a new type to be added, we can generate message and sub while creating notification. we can keep track of history using the role field in notification and task/sent_from
{% extends 'base.html' %}
{% block content %}
Subject: {{notification.sub}}<br />
Sent time: {{notification.sent_date}}<br />
{% autoescape off %}
{{notification.message}}
{% endautoescape %}
<form action="delete/" method="post"> <input type="submit" value="Delete"> </form>
<form action="unread/" method="post"> <input type="submit" value="Keep Unread"> </form>
{% endblock %}