Various small fixes for the reddit decouple

This commit is contained in:
2010-12-20 12:43:02 +00:00
parent cc4f986edb
commit 279948c330
8 changed files with 15 additions and 10 deletions

View File

@@ -3,10 +3,10 @@ from django import forms
from django.contrib.auth.models import User
from reddit.models import RedditAccount
class RedditAccountForm(forms.ModelForm):
class RedditAccountForm(forms.Form):
""" Basic Reddit account input form """
user = forms.ModelChoiceField(queryset=User.objects.order_by('username'))
username = forms.CharField(label = u'Reddit Username', max_length=64)
def clean(self):