Mercurial > public > sg101
comparison gpp/forums/tools.py @ 316:767cedc7d12a
Fixing #144; integrate with new Django logging support. Also added unit tests for Donations app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 Jan 2011 20:02:32 +0000 |
parents | 8fd4984d5c3b |
children | d1b11096595b |
comparison
equal
deleted
inserted
replaced
315:36373d995611 | 316:767cedc7d12a |
---|---|
89 | 89 |
90 """ | 90 """ |
91 try: | 91 try: |
92 forum = Forum.objects.get(slug=forum_slug) | 92 forum = Forum.objects.get(slug=forum_slug) |
93 except Forum.DoesNotExist: | 93 except Forum.DoesNotExist: |
94 logging.error('could not create_topic for forum_slug=%s' % forum_slug) | 94 logging.error('could not create_topic for forum_slug=%s', forum_slug) |
95 raise | 95 raise |
96 | 96 |
97 topic = Topic(forum=forum, | 97 topic = Topic(forum=forum, |
98 name=topic_name, | 98 name=topic_name, |
99 user=user, | 99 user=user, |