Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHumphrey Tinotenda
9,045 Pointsam stuck on task 2 guys need your help
its saying Bummer try again
from django import forms
from django.forms import formset_factory
from . import models
class DigitalProductForm(forms.ModelForm):
class Meta:
model = models.Digital
fields = ['name', 'description', 'url']
ModelFormSet = formset_factory(ModelForm, extra=2, max_num=5)
formset = DigitalFormSet()
for form in formset:
DigitalFormset = forms.modelformset_factory( models.Digital, fields = ['name', 'description', 'url'] )
Jeanette Brown
20,485 PointsJeanette Brown
20,485 PointsThis should come after your DigitalProductForm class and replace the other code you have.