change behavior so that admin can add sponsor logos/text in-dashboard
This commit is contained in:
parent
8f0fa92983
commit
8f0e4cf6a1
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ def sponsor_add(request):
|
|||
sponsor = form.save(commit=False)
|
||||
sponsor.active = True
|
||||
sponsor.save()
|
||||
return redirect("dashboard")
|
||||
return redirect("sponsor_detail", pk=sponsor.pk)
|
||||
# changing default behavior (below) so that admins can add text/logos/files in-dashboard
|
||||
# return redirect("dashboard")
|
||||
else:
|
||||
form = SponsorApplicationForm(user=request.user)
|
||||
|
||||
|
|
Loading…
Reference in a new issue