Lev-Echad / levechad-backend

LevEchad's website repository
https://live.levechad.org/client
MIT License
6 stars 4 forks source link

Create Address model & migrate HelpRequest and Volunteer to use it #308

Open stavlocker opened 4 years ago

stavlocker commented 4 years ago

Related component: HelpRequest, Volunteer

Description

Currently Volunteer has the following fields to represent the address:

These also exist in HelpRequest (and if they don't they should to work in the current format).

Instead this should be one model called Address that contains:

And HelpRequest & Volunteer should contain one address field with a foreignkey to the Address model.

The current data in the production DB should be migrated to use this new API


Prerequisites

[Make sure you've done the following before posting your issue:]

stavlocker commented 4 years ago

Put on hold until new system is stabilized