Updated models.py to uncomment

parent 7a15a2cd
from django.db import models
from django.urls import reverse
#FOR LUIGI: PLS UNCOMMENT WHEN YOU'RE DONE WITH YOUR APPS
#from assignments.models import Course
from assignments.models import Course
class Location(models.Model):
......@@ -29,13 +28,11 @@ class Event(models.Model):
on_delete=models.CASCADE,
related_name='course_name'
)
#FOR LUIGI: IF YOU'RE DONE PLS REPLACE THE CURRENT CODE FOR COURSE WITH THE COMMENTED ONE
# course = models.ForeignKey(
# Course,
# on_delete=models.CASCADE,
# related_name='course_name'
# )
course = models.CharField(max_length=50)
course = models.ForeignKey(
Course,
on_delete=models.CASCADE,
related_name='course_name'
)
def __str__(self):
return '{}'.format(self.activity)
......
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