Commit 5693ed770599ab4b98c534d17482db3ac96d1192
1 parent
38b97545
Exists in
master
and in
5 other branches
just referecing commit to edit course's category #173
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
courses/views.py
... | ... | @@ -205,7 +205,6 @@ class IndexCatView(LoginRequiredMixin, generic.ListView): |
205 | 205 | queryset = CourseCategory.objects.all() |
206 | 206 | template_name = 'category/index.html' |
207 | 207 | context_object_name = 'categories' |
208 | - paginate_by = 3 | |
209 | 208 | |
210 | 209 | class CreateCatView(LoginRequiredMixin, HasRoleMixin, generic.edit.CreateView): |
211 | 210 | |
... | ... | @@ -226,11 +225,6 @@ class UpdateCatView(LoginRequiredMixin, HasRoleMixin, generic.UpdateView): |
226 | 225 | form_class = CategoryCourseForm |
227 | 226 | success_url = reverse_lazy('course:manage_cat') |
228 | 227 | |
229 | - def render_to_response(self, context, **response_kwargs): | |
230 | - messages.success(self.request, _('Category edited successfully!')) | |
231 | - | |
232 | - return self.response_class(request=self.request, template=self.get_template_names(), context=context, using=self.template_engine) | |
233 | - | |
234 | 228 | class ViewCat(LoginRequiredMixin, generic.DetailView): |
235 | 229 | login_url = reverse_lazy("core:home") |
236 | 230 | redirect_field_name = 'next' | ... | ... |