Commit 7e497e08 authored by Jenica Vizmanos's avatar Jenica Vizmanos

Finalized apps for submission

parent 35dd88f9
......@@ -29,6 +29,9 @@ https://stackoverflow.com/questions/323763/foreign-key-from-one-app-into-another
Django model fields guide:
https://docs.djangoproject.com/en/4.1/ref/models/fields/
Save computed value in a model field:
https://stackoverflow.com/questions/30586994/django-model-save-computed-value-in-a-model-field
Date-Time formatting:
https://www.programiz.com/python-programming/datetime
https://stackoverflow.com/questions/3743222/how-do-i-convert-a-datetime-to-date
......
from django.contrib import admin
from .models import Announcement, Reaction
class ReactionInLine(admin.TabularInline):
model = Reaction
class AnnouncementAdmin(admin.ModelAdmin):
model = Announcement
inlines = [ReactionInLine]
class ReactionAdmin(admin.ModelAdmin):
model = Reaction
admin.site.register(Reaction)
admin.site.register(Announcement, AnnouncementAdmin)
admin.site.register(Reaction, ReactionAdmin)
\ No newline at end of file
......@@ -20,7 +20,7 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('dashboard/', include('dashboard.urls', namespace='dashboard')),
path('announcements/', include('announcement_board.urls', namespace='announcement_board')),
path('forum', include('forum.urls', namespace='forum')),
path('forum/', include('forum.urls', namespace='forum')),
path('calendar/', include('widget_calendar.urls', namespace="widget_calendar")),
path('assignments/', include('assignments.urls', namespace='assignments')),
]
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