chicago-justice-project / chicago-justice

Chicago Justice Project
GNU General Public License v3.0
14 stars 11 forks source link

Lazy-load Crimedata models #62

Closed meshulam closed 7 years ago

meshulam commented 7 years ago

We were having errors running initial migrations because Django 1.11 loads view classes before running migrations. This caused errors with how the the CrimeData forms were implemented, so this PR changes them to use ModelChoiceFields. These new fields won't try calling the models until runtime, thus breaking the circular dependency.

Also removing the unused textanalysis app.

This should unblock #61, comments to come on that PR.