Skip to content

Commit

Permalink
fixed campaign admin url
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas committed Apr 12, 2018
1 parent e5b7290 commit ee2faa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hasjob/views/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def new(self):
db.session.add(campaign)
db.session.commit()
flash(u"Created a campaign", 'success')
return render_redirect(url_for('AdminCampaignView_view', campaign=campaign.name), code=303)
return render_redirect(campaign.url_for(), code=303)

return render_form(form=form, title=u"Create a campaign…", submit="Next",
formid="campaign_new", cancel_url=url_for(self.list_current.endpoint), ajax=False)
Expand Down

0 comments on commit ee2faa2

Please sign in to comment.