NiclO1337 / pp4-banana-palace

A website for a restaurant specializing in delicious recipes using bananas. Fourth portfolio project with Code Institute.
0 stars 1 forks source link

[BUG] Reservation user info #51

Closed NiclO1337 closed 3 months ago

NiclO1337 commented 3 months ago

Describe the bug User information is not saved if user changes name or phone number while making a reservation.

To Reproduce Steps to reproduce the behavior:

  1. Go to reservation page
  2. Change name on the reservation
  3. Log in to admin and check reservation details
  4. See that reservation is saved with old user info.

Expected behavior Reservation should be saved with the information user enters in the form

NiclO1337 commented 3 months ago

Solution: Split reservation form into 3 different forms, one for each model, and save them seperatly, same as edit account form was created.

Potential solution: Force user to enter details upon account creation, however more complicated sign up might impact the user experience. Easy sign up was a priority and why verify email was disabled.

Potential solution: Learn more about signals, maybe then it could update all 3 models from 1 form.