Commit d2283c2bdab0056228fca0d17b16974b71b0cac5
1 parent
375ce49e
Exists in
master
and in
5 other branches
Concertando erro naem courses views
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
courses/views.py
@@ -292,7 +292,7 @@ class TopicsView(LoginRequiredMixin, generic.ListView): | @@ -292,7 +292,7 @@ class TopicsView(LoginRequiredMixin, generic.ListView): | ||
292 | topic = get_object_or_404(Topic, slug = self.kwargs.get('slug')) | 292 | topic = get_object_or_404(Topic, slug = self.kwargs.get('slug')) |
293 | context = super(TopicsView, self).get_context_data(**kwargs) | 293 | context = super(TopicsView, self).get_context_data(**kwargs) |
294 | activitys = Activity.objects.filter(topic__name = topic.name) | 294 | activitys = Activity.objects.filter(topic__name = topic.name) |
295 | - students_activit = User.objects.filter(activities = Activity.objects.all()) | 295 | + students_activit = User.objects.filter(activities__in = Activity.objects.all()) |
296 | # page_user = User.objects.get(id= self.kwargs['user_id']) | 296 | # page_user = User.objects.get(id= self.kwargs['user_id']) |
297 | context['topic'] = topic | 297 | context['topic'] = topic |
298 | context['subject'] = topic.subject | 298 | context['subject'] = topic.subject |