change behavior so that admin can add sponsor logos/text in-dashboard

This commit is contained in:
florapdx 2013-04-24 13:47:42 -07:00
parent 8f0fa92983
commit 8f0e4cf6a1

View file

@ -35,7 +35,9 @@ def sponsor_add(request):
sponsor = form.save(commit=False) sponsor = form.save(commit=False)
sponsor.active = True sponsor.active = True
sponsor.save() 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: else:
form = SponsorApplicationForm(user=request.user) form = SponsorApplicationForm(user=request.user)