Commit 03b279631ef59827161f445d7e5e931178d358bb
1 parent
74520c27
Exists in
master
and in
3 other branches
edited update for correcteness
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
categories/views.py
@@ -138,6 +138,7 @@ class UpdateCategory(UpdateView): | @@ -138,6 +138,7 @@ class UpdateCategory(UpdateView): | ||
138 | 138 | ||
139 | 139 | ||
140 | def get_success_url(self): | 140 | def get_success_url(self): |
141 | + objeto = self.object.name | ||
141 | messages.success(self.request, _('Category "%s" updated successfully!')%(objeto)) | 142 | messages.success(self.request, _('Category "%s" updated successfully!')%(objeto)) |
142 | return reverse_lazy('categories:index') | 143 | return reverse_lazy('categories:index') |
143 | 144 |