Implement ability for moderators to send notices to organisations
authorMagnus Hagander <magnus@hagander.net>
Tue, 26 Jun 2012 12:11:22 +0000 (14:11 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 26 Jun 2012 12:34:26 +0000 (14:34 +0200)
commit7855d1b06c10d8a628c4cb566a2f347c9b3b55b3
tree526d7825c2a0d23fc61235a2f6fdbb4cfc2739e2
parentca08e6a2da5c11d4947bfa66ab103575a1c3373a
Implement ability for moderators to send notices to organisations

Notices entered will be sent to the organisations email address - so there
needs to be one (if not, the notification field doesn't show up).

Notifications also go in the database, and show up on each object so you
can see the previous history of it, and get emailed to the slaves list.

Finally, it's possible to reject-with-notification, in which case the
notification is sent off to the user and after that the object is deleted.
The notification history stays in the database, but is not linked anywhere
(but can be viewed from the admin interface on that model directly).
Unfortunately, this seems to cause double notifications to the slaves list,
but we'll have to live with that for now.

Closes #137
pgweb/core/admin.py
pgweb/core/models.py
pgweb/util/admin.py
templates/admin/change_form_pgweb.html