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 trial

Python Django Forms Forms Create a Simple Form

shaddowa
shaddowa
7,811 Points

What am I doing wrong here?

I can't seem to pass the test, though it seems absolutely right

myproject/forms.py
from django import forms


class LeadShareForm(forms.Form):

1 Answer

Benjamin McKay
PLUS
Benjamin McKay
Courses Plus Student 3,767 Points

Right now your class has no body. The challenge suggests that you put pass as the body. The pass statement basically acts as a placeholder to prevent indentation errors when you plan on adding something later.

class LeadShareForm(forms.Form):
    pass
shaddowa
shaddowa
7,811 Points

ohhh thank you!