fix a few sba related things
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</ol>
|
||||
|
||||
{% 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>
|
||||
{% 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)
|
||||
|
||||
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:
|
||||
ordering = ("sort_order",)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{% if forloop.last %}
|
||||
{{cat}}
|
||||
{% else %}
|
||||
{{cat}}|
|
||||
{{cat}} |
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -44,7 +44,7 @@
|
||||
{% if forloop.last %}
|
||||
{{cat}}
|
||||
{% else %}
|
||||
{{cat}}|
|
||||
{{cat}} |
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -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)
|
||||
|
||||
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:
|
||||
ordering = ("sort_order",)
|
||||
|
||||
Reference in New Issue
Block a user