remove prints :)
This commit is contained in:
parent
461f965e26
commit
1b60b2d097
3 changed files with 1 additions and 4 deletions
|
@ -233,7 +233,6 @@ class UserSearchForm(forms.Form):
|
|||
if sort_dir=='ASC':
|
||||
#qs = qs.filter(username__contains=username).order_by('posts')
|
||||
qs.query.group_by = ['username']
|
||||
print qs
|
||||
return qs
|
||||
elif sort_dir=='DESC':
|
||||
#qs = qs.filter(username__contains=username).order_by('-posts')
|
||||
|
@ -409,6 +408,7 @@ class CreatePMForm(forms.ModelForm):
|
|||
raise forms.ValidationError(_('User with login %s does not exist') % name)
|
||||
else:
|
||||
return user
|
||||
|
||||
def save(self):
|
||||
pm = PrivateMessage(src_user=self.user, dst_user=self.cleaned_data['recipient'])
|
||||
pm = forms.save_instance(self, pm)
|
||||
|
|
|
@ -157,7 +157,6 @@ def urlize(data):
|
|||
def handle_data(self, data):
|
||||
if not self.is_link:
|
||||
data = django_urlize(data)
|
||||
print data
|
||||
self.urlized_html.append(data)
|
||||
|
||||
def handle_startendtag(self, tag, attrs):
|
||||
|
@ -170,7 +169,6 @@ def urlize(data):
|
|||
def __html_attrs(self, attrs):
|
||||
_attrs = ''
|
||||
if attrs:
|
||||
print attrs
|
||||
_attrs = ' %s' % (' '.join([('%s="%s"' % (k,v)) for k,v in attrs]))
|
||||
return _attrs
|
||||
|
||||
|
|
|
@ -353,7 +353,6 @@ def user(request, username):
|
|||
}, RequestContext(request))
|
||||
elif 'essentials' in request.GET['section']:
|
||||
form = build_form(EssentialsProfileForm, request, instance=user.forum_profile, user=user)
|
||||
print form.is_valid()
|
||||
if request.POST and form.is_valid():
|
||||
form.save()
|
||||
return render_to_response('forum/profile/profile_essentials.html',
|
||||
|
|
Reference in a new issue