Commit 37f57290 authored by Stephanie Tullao's avatar Stephanie Tullao

Added forms.py for add new post form

parent c08aa813
from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['post_title', 'post_body', 'author']
\ 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