I misspelled __str__(self).
Add some indexes and a missing unique constraint to the models.
TOo much indentation.
Import ATC codes too.
This supposedly speeds up things for sqlite.