Commit 6dcb5fd1 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

fixed spacing of models.py

parent e9de1bf0
from django.db import models
from assignments.models import Course
from django.urls import reverse
# Location Choices
location_choices = [
......@@ -29,4 +30,7 @@ class Event(models.Model):
def __str__(self):
return self.activity
def get_absolute_url(self):
return (reverse('calendar_app:event_details', kwargs={'pk' : self.pk}))
#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