Mercurial > public > sg101
diff gpp/forums/forms.py @ 100:eb9f99382476
Forums: groups support. Some experimentation with select_related() to reduce queries. There are more opportunities for this, see the TODO comments in views.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Sep 2009 03:15:20 +0000 |
parents | 93d9e74a471e |
children | e67c4dd98db5 |
line wrap: on
line diff
--- a/gpp/forums/forms.py Mon Sep 14 00:06:08 2009 +0000 +++ b/gpp/forums/forms.py Tue Sep 15 03:15:20 2009 +0000 @@ -32,10 +32,8 @@ def clean_topic_id(self): id = self.cleaned_data['topic_id'] - print '*********', id try: self.topic = Topic.objects.get(pk=id) - print '******** Got a topic' except Topic.DoesNotExist: raise forms.ValidationError('invalid topic') return id