Closed eudaldt closed 2 years ago
Yes, you can set the form_class
attribute on the InlineFormsetFactory
instance, e.g.:
from extra_views import CreateWithInLinesView, InlineFormsetFactory
class MyView(CreateWithInLinesView):
...
model = Capture # I guess
inlines = [CaptureVersionInline]
class CaptureVersionInline(InlineFormsetFactory):
model = CaptureVersion
form_class = FormulariCaptura
Perfect, thanks!
Is there a way to edit a field message error using
CreateWithInLinesView
? In aModelForm
I used to do this: