Commit 110d8995 authored by I.K Seneviratne's avatar I.K Seneviratne

Committing the minor updates in an abstract model in MongoModels.py file.

parent 7358e49a
...@@ -79,6 +79,10 @@ class DailyTimeTable(models.Model): ...@@ -79,6 +79,10 @@ class DailyTimeTable(models.Model):
subject = models.ForeignKey(Subject, on_delete=models.CASCADE) subject = models.ForeignKey(Subject, on_delete=models.CASCADE)
lecturer = models.ForeignKey(Lecturer, on_delete=models.CASCADE) lecturer = models.ForeignKey(Lecturer, on_delete=models.CASCADE)
location = models.CharField(max_length=10) location = models.CharField(max_length=10)
# new temp fields
lecturer_name = models.CharField(max_length=20, default='')
subject_name = models.CharField(max_length=20, default='')
no_of_students = models.IntegerField(default=4)
def __str__(self): def __str__(self):
return self.location return self.location
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment