model_forms isn't the correct test package to put this in. maybe 'queries'? Try searching for "to_field" in the the tests to get an idea of where else that's tested. If it's possible to reuse an existing model, that would be ideal. Otherwise, try to slim down the model fields to the minimal amount needed for testing -- for example,  I don't think "db_index=True" is needed.