7 lines
155 B
Python
7 lines
155 B
Python
from django.forms.models import modelform_factory
|
|
|
|
from .models import Message
|
|
|
|
|
|
MessageForm = modelform_factory(Message, fields=['subject', 'content'])
|