This commit is contained in:
Ross
2021-12-11 23:56:46 +00:00
parent 16c5324051
commit bb5460f9b2
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -67,10 +67,10 @@
</select>
</span>
<button id="add-new-cids">Add New</button>
<input type="number" id="add-number" value="number to add">
</div>
<button id="add-new-cids">Add New</button>
<input type="number" id="add-number" value="number to add">
</details>
{% endblock %}
+1
View File
@@ -961,6 +961,7 @@ def create_cid_users(request):
for n in range(number):
passcode = "".join(random.choices(string.ascii_uppercase, k=4))
c = CidUser(cid=new_cid, passcode=passcode)
c.save()
c.physics_exams.set(physics_exams)
c.save()
new_cid = new_cid + 1