summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2010-01-31 06:53:27 +0100
committerDan McGee <dan@archlinux.org>2010-01-31 20:44:03 +0100
commit09a3a08144fd14fcd905cdf3e86dcc240458040c (patch)
tree72a03516cf3fa888d57cdca5b1fb18717532849f /todolists
parent2c3c6cc2e1dc070395481f92f5499113b9e5a6bf (diff)
downloadarchweb-09a3a08144fd14fcd905cdf3e86dcc240458040c.tar.gz
archweb-09a3a08144fd14fcd905cdf3e86dcc240458040c.tar.xz
Adjust models and views for nullable maintainer
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py
index c06397e..00236c6 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -124,7 +124,7 @@ def delete_todolist(request, object_id):
def send_todolist_email(todo):
'''Sends an e-mail to the maintainer of a package notifying them that the
package has been added to a to-do list'''
- if todo.pkg.maintainer_id == 0:
+ if not todo.pkg.maintainer:
return
page_dict = {