From 09a3a08144fd14fcd905cdf3e86dcc240458040c Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Sun, 31 Jan 2010 07:53:27 +0200 Subject: Adjust models and views for nullable maintainer Signed-off-by: Evangelos Foutras [Dan: made a few other small touchups] Signed-off-by: Dan McGee --- todolists/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todolists') 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 = { -- cgit v1.2.3-24-g4f1b