- Fixed duplicate image uploading bug (i think)
- changing community settings now redirects you, same with creating a community.
This commit is contained in:
some weird guy
2023-09-04 21:17:50 -07:00
parent b4772d0e20
commit a9bf3179f1
3 changed files with 23 additions and 13 deletions
+2 -2
View File
@@ -1013,7 +1013,7 @@ def community_tools_set(request, community):
return json_response(form.errors.as_text())
form.save()
AuditLog.objects.create(type=4, community=the_community, user=the_community.creator, by=request.user)
return HttpResponse()
return redirect(reverse('main:community-view', args=[the_community.id]))
else:
raise Http404()
@@ -1042,7 +1042,7 @@ def community_create_action(request):
community.type = 3
community.creator = request.user
community.save()
return json_response('Community has been created, check the front page!', 'Done')
return redirect('/')
else:
raise Http404()
@login_required