Login or Sign up

Django AttributeError: 'NoneType' object has no attribute 'label'

Posted by: skyl on Oct. 26, 2010

class ArticleForm(forms.ModelForm):

    class Meta:
        model = Article
        fields = ('category')

You need a comma there after 'category' to make a tuple :-).

Comments on This Post:

Please Login (or Sign Up) to leave a comment