smithev95 / NEFP-Capstone

0 stars 0 forks source link

Update models.py for storing client data #12

Closed ployniti closed 1 month ago

ployniti commented 1 month ago

Updated fields in models.py to reflect the questions Jon is hoping to collect from food pantry clients.

Here's the link to the Microsoft team form currently used: https://forms.office.com/pages/responsepage.aspx?id=m6hrlDeTeEa3ZLY9gLsCJooVvlxKkxtImWB6K4-KjlRUOFBGTkZYRVhOTjlaWTNWRklXN0lIUEZLRy4u

I think it makes more sense to be generic with the datatypes of the fields so I moved away from enforcing choices in the family_size and zip_code fields and used PositiveIntegerField and CharField instead.

We can display the different choices on the frontend instead.