fix: harmonize / fix course configuration
This commit is contained in:
parent
cc81d81553
commit
52a6a0e642
|
|
@ -66,17 +66,16 @@ class DashboardQuery(graphene.ObjectType):
|
|||
user = info.context.user
|
||||
|
||||
if user.is_superuser:
|
||||
courses = Course.objects.all().values("id", "title", "slug")
|
||||
return [
|
||||
{
|
||||
"id": c["id"],
|
||||
"course_id": c["id"],
|
||||
"name": c["title"],
|
||||
"slug": c["slug"],
|
||||
"id": c.id,
|
||||
"course_id": c.id,
|
||||
"name": c.title,
|
||||
"slug": c.slug,
|
||||
"dashboard_type": DashboardType.SIMPLE_DASHBOARD,
|
||||
"course_configuration": c.configuration,
|
||||
}
|
||||
for c in courses
|
||||
for c in Course.objects.all()
|
||||
]
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Reference in New Issue