Commits

Richard Jones committed ca63818

fix

Comments (0)

Files changed (2)

pyweek/challenge/templates/challenge/user_display.html

 {% endautoescape %}
 
 {% if user.is_staff %}
-<form action="/u/{{ profile_user.name }}/delete_spam" method="POST">
+<form action="/u/{{ profile_user.username }}/delete_spam" method="POST">
   <input type="submit" value="Delete Spammer">
   <input type="checkbox" name="confirm">
 </form>

pyweek/challenge/views/user.py

             'received_awards': received_awards,
         }, context_instance=RequestContext(request))
 
+
 class ProfileForm(forms.Form):
     content = SafeHTMLField(label='Text to appear on your profile page',
-        help_text='Basic HTML tags allowed: %s'%(', '.join(safeTags)))
+        help_text='Basic HTML tags allowed: %s' % (', '.join(safeTags)))
+
 
 def profile_description(request):
     if request.user.is_anonymous():
 
             # do the save
             if profile is None:
-                profile = models.UserProfile(content=content, user=request.user)
+                profile = models.UserProfile(content=content,
+                    user=request.user)
             else:
                 profile.content = content
             profile.save()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.