Django: Field Error Unknown fields -
i installed os x lion, had reinstall python2.7. in doing upgraded django 1.3 1.2.3. when try , runserver, odd field error i'm having tough time deciphering.
fielderror @ / unknown field(s) (a, m, s, e, g) specified note
here model & form:
class note(models.model): pub_date = models.datetimefield(default=datetime.now, auto_now_add=true, db_index=true) user = models.foreignkey(user, null=true, blank=true, related_name="writers") = models.foreignkey(user, null=true, blank=true, related_name="tost") message = models.charfield(default='', max_length=140) active = models.booleanfield(default=true) class noteform(forms.modelform): class meta: model = note fields = ('message') message = forms.charfield( label=_("sign guestbook"), widget=forms.textarea, required=true)
try
fields = ('message',)
to create tuple 1 element.
Comments
Post a Comment