Development of an internal social media platform with personalised dashboards for students

forms.py 157B

123456789
  1. from django import forms
  2. from .models import Post
  3. class PostForm(forms.ModelForm):
  4. class Meta:
  5. model = Post
  6. fields = ('title', 'text')