diff gpp/weblinks/forms.py @ 204:b4305e18d3af

Resolve ticket #74. Add user badges. Some extra credit was done here: also refactored how pending news, links, and downloads are handled.
author Brian Neal <bgneal@gmail.com>
date Sat, 01 May 2010 21:53:59 +0000
parents dbd703f7d63a
children 7e8d2dda99e3
line wrap: on
line diff
--- a/gpp/weblinks/forms.py	Wed Apr 28 03:00:31 2010 +0000
+++ b/gpp/weblinks/forms.py	Sat May 01 21:53:59 2010 +0000
@@ -3,7 +3,7 @@
 """
 
 from django import forms
-from weblinks.models import Link
+from weblinks.models import PendingLink, Link
 
 class SearchForm(forms.Form):
    '''Weblinks search form'''
@@ -26,5 +26,5 @@
       raise forms.ValidationError('That link already exists in our database.')
 
    class Meta:
-      model = Link
-      exclude = ('user', 'date_added', 'hits', 'is_public')
+      model = PendingLink
+      exclude = ('user', 'date_added')