Skip to content

Commit

Permalink
Updating success url for the updating view
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Jul 7, 2016
1 parent 58a8344 commit ded9079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend_citizen/tests/views_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ def test_post_update_my_profile(self):
data = {'first_name': u'Fiera', 'last_name': 'Feroz'}
self.client.login(username=self.fiera.username, password=PASSWORD)
response = self.client.post(url, data=data, follow=True)
self.assertTemplateUsed(response, 'backend_citizen/update_my_profile.html')
self.assertTemplateUsed(response, 'backend_citizen/index.html')
2 changes: 1 addition & 1 deletion backend_citizen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ def get_object(self):
return self.request.user

def get_success_url(self):
return reverse('backend_citizen:update_my_profile')
return reverse('backend_citizen:index')

0 comments on commit ded9079

Please sign in to comment.