How to write Django Model Forms in just one line?
Till this point of time, you have been creating form for your existing models in Django using ModelForm class:
from django import forms
class MyModelForm(forms.ModelForm):
# specify the name of model to use
class Meta:
model = MyMode...
blog.devjunction.in1 min read