Commit db878fed0415eeb4f069015d3fed85f31d5bc62c

Authored by Gustavo Bernardo
1 parent bdbe09be

Included success message on course creation [Issue:#437]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
courses/views.py
... ... @@ -163,7 +163,7 @@ class CreateCourseView(LoginRequiredMixin, HasRoleMixin, LogMixin, NotificationM
163 163 self.log_context['course_slug'] = self.object.slug
164 164 self.log_context['course_category_id'] = self.object.category.id
165 165 self.log_context['course_category_name'] = self.object.category.name
166   -
  166 + messages.success(self.request,_("Course '%s' was successfully created!"%(self.object.name) ))
167 167 super(CreateCourseView, self).createLog(self.request.user, self.log_component, self.log_action, self.log_resource, self.log_context)
168 168  
169 169 return super(CreateCourseView, self).form_valid(form)
... ...