diff gpp/news/forms.py @ 240:1246a4f1ab4f

For #93: fix url scheme for the news application.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 00:14:54 +0000
parents 6dbb8faef085
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/news/forms.py	Sun Sep 12 18:30:23 2010 +0000
+++ b/gpp/news/forms.py	Wed Sep 15 00:14:54 2010 +0000
@@ -23,24 +23,6 @@
       js = settings.GPP_THIRD_PARTY_JS['tiny_mce']
 
 
-class SearchNewsForm(forms.Form):
-   """Form for a user to search news stories."""
-   text = forms.CharField(max_length=30)
-   category = forms.ModelChoiceField(label='', 
-         required=False,
-         empty_label='(All Categories)',
-         queryset=Category.objects.all())
-
-   def get_query(self):
-      return self.cleaned_data['text']
-
-   def get_category(self):
-      cat = self.cleaned_data['category']
-      if cat:
-         return cat
-      return None
-
-
 class SendStoryForm(forms.Form):
    """Form for sending a news story via email to a friend."""
    friend_name = forms.CharField(label="Friend's Name", max_length=64)