forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chapter may be set as a model answer to course modules
Add a new feature that enables controlling chapter visibility to students based on the completion of a course module. There are multiple alternative rules for revealing the chapter since the feature uses the same "reveal rules" feature that has previously been developed for the visibility of assignment model solutions and submission feedback. Fixes apluslms#1098
- Loading branch information
1 parent
08663d3
commit 2420432
Showing
13 changed files
with
481 additions
and
43 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
course/migrations/0058_coursemodule_model_answer_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.4 on 2023-08-29 13:50 | ||
|
||
from django.db import migrations | ||
import django.db.models.deletion | ||
import lib.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('exercise', '0048_alter_revealrule_trigger'), | ||
('course', '0057_usertagging_rename_index'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='coursemodule', | ||
name='model_answer', | ||
field=lib.fields.DefaultForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='model_answer_modules', to='exercise.coursechapter', verbose_name='LABEL_MODEL_ANSWER'), | ||
), | ||
migrations.AddField( | ||
model_name='coursemodule', | ||
name='model_solution_reveal_rule', | ||
field=lib.fields.DefaultOneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='exercise.revealrule', verbose_name='LABEL_MODEL_SOLUTION_REVEAL_RULE'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.