Commit f0089f57 authored by Colleen's avatar Colleen

Created Announcement board

parent 15477754
from django import forms
from .models import Announcement, Reaction
class AnnouncementForm(forms.ModelForm):
class meta:
model = Announcement
fields = ['title','body','author','pub_datetime']
class ReactionForm(forms.ModelForm):
class meta:
model = Reaction
fields = ['name','tally','announcement']
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