Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2022 20:56
What would you like to do?
Basic Django form
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = ["title", "body"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment