Browse Source
admin panel Quiz enhancement
admin panel Quiz enhancement
moved the Quizzes tab in Course section. in the course details we have a quiz section ,accessing to all the quizzes of that course an action button for quizzes to navigate to related course added quiz model updated with course fieldmaster
4 changed files with 81 additions and 2 deletions
-
27apps/course/admin/course.py
-
29apps/quiz/admin/quiz.py
-
20apps/quiz/migrations/0003_quiz_course.py
-
7apps/quiz/models/quiz.py
@ -0,0 +1,20 @@ |
|||||
|
# Generated by Django 5.2.12 on 2026-05-16 15:01 |
||||
|
|
||||
|
import django.db.models.deletion |
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('course', '0006_alter_course_professor_alter_course_video_file_and_more'), |
||||
|
('quiz', '0002_alter_participantanswer_answer_timing_and_more'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='quiz', |
||||
|
name='course', |
||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='quizzes', to='course.course', verbose_name='Course'), |
||||
|
), |
||||
|
] |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue