generated from codersforcauses/django-nextjs-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from codersforcauses/optimize-the-logic-of-att…
…emping-a-comp Optimize the logic of attemping a comp
- Loading branch information
Showing
12 changed files
with
506 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,4 +84,4 @@ def update(self, instance, validated_data): | |
|
||
class Meta: | ||
model = Question | ||
fields = "__all__" | ||
fields = '__all__' |
32 changes: 32 additions & 0 deletions
32
server/api/quiz/migrations/0010_alter_quizattempt_team_alter_quizattempt_time_finish.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,32 @@ | ||
# Generated by Django 5.1.5 on 2025-01-27 04:05 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("quiz", "0009_quizattempt_team"), | ||
("team", "0003_alter_teammember_student_alter_teammember_team"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="quizattempt", | ||
name="team", | ||
field=models.ForeignKey( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="quiz_attempts", | ||
to="team.team", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="quizattempt", | ||
name="time_finish", | ||
field=models.DateTimeField(blank=True, null=True), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
server/api/quiz/migrations/0011_alter_quizattempt_student.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,27 @@ | ||
# Generated by Django 5.1.5 on 2025-01-27 14:22 | ||
|
||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("quiz", "0010_alter_quizattempt_team_alter_quizattempt_time_finish"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="quizattempt", | ||
name="student", | ||
field=models.ForeignKey( | ||
default=None, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="quiz_attempts", | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
server/api/quiz/migrations/0012_alter_quizattempt_student.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 5.1.5 on 2025-01-27 14:27 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("quiz", "0011_alter_quizattempt_student"), | ||
("users", "0002_school_is_country_school_type_student_attendent_year"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="quizattempt", | ||
name="student", | ||
field=models.ForeignKey( | ||
default=None, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="quiz_attempts", | ||
to="users.student", | ||
), | ||
), | ||
] |
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 5.1.5 on 2025-01-28 08:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("quiz", "0012_alter_quizattempt_student"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="quizattempt", | ||
name="dead_line", | ||
field=models.DateTimeField(blank=True, default=None, null=True), | ||
), | ||
] |
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.