modified ModelFormMixin.get_success_url to check for self.object #100

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant
Contributor

jacobh commented May 31, 2012

I hit an error today where my view was trying to call get_success_url() on ModelFormMixin, with success_url set, but without self.object being present. This will fall back to a static url if self.object isn't available.

Contributor

jacobh commented May 31, 2012

I found that i wasn't returning the instance at the end of the save() function that I overwrote. disregard

jacobh closed this May 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment