Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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')