Call-for-Code-for-Racial-Justice / Legit-Info

"Legit Info" app helps residents understand the impact of legislation and policies based on their country, state, county, city, district location
Apache License 2.0
67 stars 74 forks source link

Location.loads() does not exist #145

Closed upkarlidder closed 2 years ago

upkarlidder commented 2 years ago

Describe the bug Reported by Shubham - In the ‘Get Datasets’ command, we have a (conditional) call to Location.loads() -> this function does not exist (see attached screenshot) This will only be called if there are no objects with the shortname ‘usa’ in the database for ‘Location’ Model, which is probably why it hasn’t been noticed yet, but what do we want to place here? Should it be calling some other function or do we want to define a new function called ‘loads’ in the ‘Location’ Model?

To Reproduce N/A

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

upkarlidder commented 2 years ago

@tonypearson recommends using Location.get_defaults() in this code. FYI @shubham599.

upkarlidder commented 2 years ago

@shubham599 any updates on this issue? Thank you.

FYI @demilolu

upkarlidder commented 2 years ago

PR #154 closes this issue.