20 lines
490 B
Python
20 lines
490 B
Python
|
from fancy_formsets.forms import FancyBaseInlineFormSet
|
||
|
|
||
|
|
||
|
from frontend.models import Presentation, PresentationEvent, PresentationPerson
|
||
|
from django.forms.models import inlineformset_factory
|
||
|
|
||
|
PresentationPersonInlineFormset = inlineformset_factory(
|
||
|
Presentation,
|
||
|
PresentationPerson,
|
||
|
formset=FancyBaseInlineFormSet,
|
||
|
extra=1
|
||
|
)
|
||
|
|
||
|
PresentationEventInlineFormset = inlineformset_factory(
|
||
|
Presentation,
|
||
|
PresentationEvent,
|
||
|
formset=FancyBaseInlineFormSet,
|
||
|
extra=1
|
||
|
)
|