Skip to content

Commit

Permalink
Merge pull request #30 from timster/patch-1
Browse files Browse the repository at this point in the history
Fix typo of method name in error message.
  • Loading branch information
tomchristie committed Jul 15, 2014
2 parents 53cc72c + fcbd539 commit a5e17bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vanilla/views.py
Expand Up @@ -96,6 +96,6 @@ def form_invalid(self, form):

def get_success_url(self):
if self.success_url is None:
msg = "'%s' must define 'success_url' or override 'form_valid()'"
msg = "'%s' must define 'success_url' or override 'get_success_url()'"
raise ImproperlyConfigured(msg % self.__class__.__name__)
return self.success_url

0 comments on commit a5e17bf

Please sign in to comment.