Merge branch 'development' of https://github.com/Rushilwiz/SkoolOS into development

This commit is contained in:
Raffu Khondaker 2020-06-16 20:52:13 -04:00
commit 1cc8af9815
11 changed files with 11 additions and 6 deletions

View File

@ -1 +0,0 @@
{"username": "2022rkhondak", "grade": 10, "is_student": true, "password": "hackgroup1"}

1
.2023rumaretiprofile Normal file
View File

@ -0,0 +1 @@
{"username": "2023rumareti", "grade": 9, "is_student": true, "password": "a"}

View File

@ -1 +0,0 @@
{"username": "eharris1", "is_student": false, "password": "hackgroup1"}

1
.sstern1profile Normal file
View File

@ -0,0 +1 @@
{"username": "sstern1", "is_student": false, "password": "Riya2011"}

1
2023rumareti Submodule

@ -0,0 +1 @@
Subproject commit ca356ef8532873bf52ec67a647fbb91a25ca1cb7

View File

@ -8,6 +8,7 @@ class Student(models.Model):
user = models.OneToOneField(User, blank=True, on_delete=models.CASCADE) user = models.OneToOneField(User, blank=True, on_delete=models.CASCADE)
ion_user = models.CharField(max_length=100, primary_key=True) ion_user = models.CharField(max_length=100, primary_key=True)
grade = models.IntegerField(default=0, blank=True) grade = models.IntegerField(default=0, blank=True)
log = models.TextField(default="", blank=True)
git=models.CharField(default="", max_length=100, blank=True) git=models.CharField(default="", max_length=100, blank=True)
repo=models.URLField(default="", blank=True) repo=models.URLField(default="", blank=True)
classes=models.CharField(max_length=100, default="", blank=True) classes=models.CharField(max_length=100, default="", blank=True)

View File

@ -152,6 +152,12 @@ def createClassHelper(request):
messages.success(request, cleaned_data['subject'].capitalize() + " has been created!") messages.success(request, cleaned_data['subject'].capitalize() + " has been created!")
print (newClass) print (newClass)
teacher.classes.add(newClass) teacher.classes.add(newClass)
for student in newClass.unconfirmed.all():
if student.added_to == "":
student.added_to = newClass.name
else:
student.added_to = student.added_to + "," + newClass.name
student.save()
return redirect('home') return redirect('home')
else: else:
classForm = ClassCreationForm() classForm = ClassCreationForm()

View File

@ -1,7 +1,3 @@
.. SkoolOS documentation master file, created by
sphinx-quickstart on Tue Jun 16 11:22:02 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to SkoolOS's documentation! Welcome to SkoolOS's documentation!
=================================== ===================================

@ -0,0 +1 @@
Subproject commit ca356ef8532873bf52ec67a647fbb91a25ca1cb7