fix a few sba related things
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
{% comment %} Hide the toggle button if there are no users (to add or remove) {% endcomment %}
|
{% comment %} Hide the toggle button if there are no users (to add or remove) {% endcomment %}
|
||||||
{% if current_cid_users or available_cid_users %}
|
{% if current_user_users or available_user_users %}
|
||||||
<p><button class="toggle-all-btn">Toggle all</button></p>
|
<p><button class="toggle-all-btn">Toggle all</button></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.0.2 on 2024-08-28 17:22
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('physics', '0013_alter_exam_markers'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='examquestiondetail',
|
||||||
|
old_name='rapid',
|
||||||
|
new_name='question',
|
||||||
|
),
|
||||||
|
]
|
||||||
+1
-1
@@ -141,7 +141,7 @@ class ExamQuestionDetail(models.Model):
|
|||||||
sort_order = models.IntegerField(default=1000)
|
sort_order = models.IntegerField(default=1000)
|
||||||
|
|
||||||
exam = models.ForeignKey("Exam", on_delete=models.CASCADE)
|
exam = models.ForeignKey("Exam", on_delete=models.CASCADE)
|
||||||
rapid = models.ForeignKey(Question, on_delete=models.CASCADE)
|
question = models.ForeignKey(Question, on_delete=models.CASCADE)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ("sort_order",)
|
ordering = ("sort_order",)
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.0.2 on 2024-08-28 17:22
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('sbas', '0013_alter_exam_markers'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RenameField(
|
||||||
|
model_name='examquestiondetail',
|
||||||
|
old_name='rapid',
|
||||||
|
new_name='question',
|
||||||
|
),
|
||||||
|
]
|
||||||
+1
-1
@@ -159,7 +159,7 @@ class ExamQuestionDetail(models.Model):
|
|||||||
sort_order = models.IntegerField(default=1000)
|
sort_order = models.IntegerField(default=1000)
|
||||||
|
|
||||||
exam = models.ForeignKey("Exam", on_delete=models.CASCADE)
|
exam = models.ForeignKey("Exam", on_delete=models.CASCADE)
|
||||||
rapid = models.ForeignKey(Question, on_delete=models.CASCADE)
|
question = models.ForeignKey(Question, on_delete=models.CASCADE)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ("sort_order",)
|
ordering = ("sort_order",)
|
||||||
|
|||||||
Reference in New Issue
Block a user