spradio-server-django/savepointradio/radio/forms.py

11 lines
342 B
Python
Raw Normal View History

from django.forms import inlineformset_factory
from .models import Song
ArtistFormSet = inlineformset_factory(Song,
Song.artists.through,
fields=('artist',),
can_delete=False,
extra=10,)