fenton1000 / mf-portfolio-five-big-boring-shop

0 stars 1 forks source link

USER STORY: Contact Form #19

Closed fenton1000 closed 1 year ago

fenton1000 commented 1 year ago

As a Visiting User I can complete a contact form and provide my name, email and comment or query so that I can easily contact the business and expect a reply.

fenton1000 commented 1 year ago

Acceptance Criteria:

  1. The contact page contains a contact form.
  2. Submitted queries can be viewed in the admin panel.
  3. The admin panel includes tags to show whether comments have been viewed and the issues raised closed.
fenton1000 commented 1 year ago

Tasks:

  1. Create a Contact model in models.py including fields for user(not required), name, email address, comment, viewed (default = False) and closed (default = False).
  2. Make database migrations.
  3. Create a form in forms.py.
  4. Add the contact model to the admin panel in admin.py.
  5. Render the form in the contact.html template.
  6. Create a post handler in the contact view to handle the form.