diff gpp/downloads/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 c515b7401078
children 27bee3ac85e6
line wrap: on
line diff
--- a/gpp/downloads/forms.py	Wed Apr 28 03:00:31 2010 +0000
+++ b/gpp/downloads/forms.py	Sat May 01 21:53:59 2010 +0000
@@ -6,7 +6,7 @@
 from django import forms
 from django.conf import settings
 
-from downloads.models import Download
+from downloads.models import PendingDownload
 from downloads.models import AllowedExtension
 
 
@@ -34,7 +34,7 @@
         raise forms.ValidationError('The file extension "%s" is not allowed.' % ext)
 
     class Meta:
-        model = Download
+        model = PendingDownload
         fields = ('title', 'category', 'description', 'file')
         
     class Media: