comparison gpp/weblinks/views.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 046e6ef0ff45
children 2022c0409296
comparison
equal deleted inserted replaced
203:40e5903903e1 204:b4305e18d3af
71 if request.method == 'POST': 71 if request.method == 'POST':
72 add_form = AddLinkForm(request.POST) 72 add_form = AddLinkForm(request.POST)
73 if add_form.is_valid(): 73 if add_form.is_valid():
74 new_link = add_form.save(commit=False) 74 new_link = add_form.save(commit=False)
75 new_link.user = request.user 75 new_link.user = request.user
76 new_link.is_public = False
77 new_link.save() 76 new_link.save()
78 email_admins('New link for approval', """Hello, 77 email_admins('New link for approval', """Hello,
79 78
80 A user has added a new link for your approval. 79 A user has added a new link for your approval.
81 """) 80 """)