blathering-barnacles / Bangazon-2

Sprint 2
1 stars 1 forks source link

Jb reg customer #51

Closed jessicabarnett8219 closed 5 years ago

jessicabarnett8219 commented 5 years ago

Description: Added functionality to create a customer at the same time a user is registered so that they have the same id. I did this by refactoring the registration view to use the new user id to pass in as the primary key and user foreign key when creating a new customer.

Steps to Test: Go to localhost:8000 Logout Register a new user Look in the database and look at the customer table. Make sure the primary key is the same as the user id foreign key

Kazathur92 commented 5 years ago

It works! 👍 ✌️