> On Jun 4, 7:47 pm, Streamweaver <streamwea...@gmail.com> wrote: > > > You need to call form.save() after you validate the form. > On Jun 5, 8:08 am, Andy Dietler <andydiet...@gmail.com> wrote: > When I add that line I get the following error: > > 'AddShow' object has no attribute 'save'
Because you've used a plain Form, not a ModelForm. If you've got a form that represents a model, you should use a modelform. class AddShow(forms.ModelForm): class Meta: model = Show Now your form has a save method. See here: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---