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.
Add option for users to set personalized points goals for modules
- Loading branch information
1 parent
1604329
commit 82a5f4d
Showing
16 changed files
with
257 additions
and
10 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
course/migrations/0060_coursemodule_personalized_points_goal.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,20 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 11:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("course", "0059_submissiontag"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="coursemodule", | ||
name="personalized_points_goal", | ||
field=models.PositiveIntegerField( | ||
default=100, verbose_name="LABEL_PERSONALIZED_POINTS_GOAL" | ||
), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
course/migrations/0061_remove_coursemodule_personalized_points_goal.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,17 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 12:52 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("course", "0060_coursemodule_personalized_points_goal"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="coursemodule", | ||
name="personalized_points_goal", | ||
), | ||
] |
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,44 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 13:02 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("userprofile", "0008_delete_studentmodulegoal"), | ||
("course", "0061_remove_coursemodule_personalized_points_goal"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="StudentModuleGoal", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("personalized_points_goal", models.IntegerField(default=0)), | ||
( | ||
"module", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="course.coursemodule", | ||
), | ||
), | ||
( | ||
"student", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="userprofile.userprofile", | ||
), | ||
), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
course/migrations/0063_alter_studentmodulegoal_personalized_points_goal.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,18 @@ | ||
# Generated by Django 4.2.11 on 2024-06-12 10:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("course", "0062_studentmodulegoal"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="studentmodulegoal", | ||
name="personalized_points_goal", | ||
field=models.IntegerField(default=100), | ||
), | ||
] |
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
20 changes: 20 additions & 0 deletions
20
exercise/migrations/0051_baseexercise_personalized_points_goal.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,20 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 10:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("exercise", "0050_submissiontagging"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="baseexercise", | ||
name="personalized_points_goal", | ||
field=models.PositiveIntegerField( | ||
default=100, verbose_name="LABEL_PERSONALIZED_POINTS_GOAL" | ||
), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
exercise/migrations/0052_remove_baseexercise_personalized_points_goal.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,17 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 11:26 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("exercise", "0051_baseexercise_personalized_points_goal"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="baseexercise", | ||
name="personalized_points_goal", | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<form method="POST"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button type="submit">Save</button> | ||
</form> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 12:52 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("userprofile", "0006_auto_20210812_1536"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="StudentModuleGoal", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("personalized_points_goal", models.IntegerField(default=0)), | ||
( | ||
"student", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="userprofile.userprofile", | ||
), | ||
), | ||
], | ||
), | ||
] |
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,16 @@ | ||
# Generated by Django 4.2.11 on 2024-06-03 13:02 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("userprofile", "0007_studentmodulegoal"), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name="StudentModuleGoal", | ||
), | ||
] |