Populated each app with at least 10 objects

parent 89175bfb
...@@ -21,6 +21,9 @@ class Course(models.Model): ...@@ -21,6 +21,9 @@ class Course(models.Model):
course_code = models.CharField(max_length=10) course_code = models.CharField(max_length=10)
course_title = models.CharField(max_length=50) course_title = models.CharField(max_length=50)
section = models.CharField(max_length=5) section = models.CharField(max_length=5)
def __str__(self):
return self.course_title
class Event(models.Model): class Event(models.Model):
target_datetime = models.CharField(max_length=50) target_datetime = models.CharField(max_length=50)
......
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