mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Abstract out update command instead of being embedded in save, added cron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user