I have prepared a basic contact form in Django. The data gets saved successfully. But I want to retrieve the saved data (all db columns) as a html table and display it on my site (not in the admin interface).
Here is the model:
class ContactForm(forms.Form):
name = forms.CharField(label='Your name')
place = forms.CharField(max_length=100,label='Your place')
message = forms.CharField(label='Your message')
url = forms.URLField(label='Your Web site', required=False)
options = forms.BooleanField(required=False)
day = forms.DateField(initial=datetime.date.today)
The view only accepts the post data and redirects to a "thanks" page.
I tried doing ContactForm.objects.all() but the error I got was: Objects attribute does not exist for ContactForm.