Skip to content

Commit

Permalink
EditPost returned space name instead of space URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Carballal Prego committed Mar 21, 2012
1 parent 46a322d commit f5e2321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e_cidadania/apps/news/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class EditPost(UpdateView):

def get_success_url(self):
self.space = get_object_or_404(Space, url=self.kwargs['space_name'])
return '/spaces/' + self.space.name
return '/spaces/' + self.space.url

def get_object(self):
cur_post = get_object_or_404(Post, pk=self.kwargs['post_id'])
Expand Down

0 comments on commit f5e2321

Please sign in to comment.