<filename>posts/forms.py
from django.contrib.auth import get_user_model
from django import forms
from .models import Post


class NewPost(forms.ModelForm):
        class Meta:
                model = Post
                fields = ['text','group']



<filename>posts/forms.py
from django.contrib.auth import get_user_model
from django import forms
from .models import Post


class NewPost(forms.ModelForm):
        class Meta:
                model = Post
                fields = ['text','group']


