Abstract out update command instead of being embedded in save, added cron

This commit is contained in:
2010-03-02 23:08:19 +00:00
parent b04f943bc5
commit ed258069fd
3 changed files with 29 additions and 3 deletions

View File

@@ -135,6 +135,7 @@ def reddit_add(request):
acc.user = request.user
acc.username = form.cleaned_data['username']
acc.api_update()
acc.save()
return HttpResponseRedirect(reverse('sso.views.profile')) # Redirect after POST