Commit 38bedd15 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

added reference link to models.py

parent ad4904b2
......@@ -22,8 +22,10 @@ class Event(models.Model):
activity = models.CharField("Activity: ",max_length=50)
estimated_hours = models.FloatField("Estimated Hours: ",max_length=50)
location = models.ForeignKey(Location, on_delete=models.CASCADE)
course = models.CharField("Course/Section: ",max_length=69, default="")
course = models.CharField("Course/Section: ",max_length=69, default="") #temporary: wait for the course from assignments app
def __str__(self):
return self.activity
#refernce for location_choices: https://stackoverflow.com/questions/31130706/dropdown-in-django-model
\ No newline at end of file
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