diff --git a/apps/user/templates/user/profile.html b/apps/user/templates/user/profile.html index f9d85cdb..d655a3ad 100644 --- a/apps/user/templates/user/profile.html +++ b/apps/user/templates/user/profile.html @@ -69,6 +69,13 @@ + +
@@ -85,6 +92,20 @@
+
+
+
+ {% include "course/course_items.html" with course_items=pending %} +
+
+
+
+
+
+ {% include "course/course_items.html" with course_items=drafts %} +
+
+
diff --git a/apps/user/views.py b/apps/user/views.py index 3b3f1daa..5b8675fd 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -27,6 +27,12 @@ class UserView(DetailView): context['published'] = Course.objects.filter( author=self.object, status=Course.PUBLISHED ) + context['pending'] = Course.objects.filter( + author=self.object, status=Course.PENDING + ) + context['drafts'] = Course.objects.filter( + author=self.object, status=Course.DRAFT + ) context['paid'] = Course.objects.none() return context