Commit eff51892 authored by Gabriel Geraldo's avatar Gabriel Geraldo

amended admin.py and models.py to fit format

parent 598be356
...@@ -11,7 +11,7 @@ class LocationAdmin(admin.ModelAdmin): ...@@ -11,7 +11,7 @@ class LocationAdmin(admin.ModelAdmin):
class EventAdmin(admin.ModelAdmin): class EventAdmin(admin.ModelAdmin):
model = Event model = Event
list_display = ("course", "activity", "target_datetime") list_display = ("activity", "target_datetime", "course")
search_fields = ("activity", "course") search_fields = ("activity", "course")
list_filter = ("course",) list_filter = ("course",)
......
...@@ -3,9 +3,9 @@ from assignments.models import Course ...@@ -3,9 +3,9 @@ from assignments.models import Course
class Location(models.Model): class Location(models.Model):
ONSITE = 'ONSITE' ONSITE = 'onsite'
ONLINE = 'ONLINE' ONLINE = 'online'
HYBRID = 'HYBRID' HYBRID = 'hybrid'
MODE_CHOICES = [ MODE_CHOICES = [
(ONSITE, 'Onsite'), (ONSITE, 'Onsite'),
(ONLINE, 'Online'), (ONLINE, 'Online'),
......
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