Django admin hangs (until timeout error) for a specific model when trying to edit/create

In your admin.py file, under the appropriate admin class, set

raw_id_fields = ('zipcode',)

This will display the zipcode’s PK instead of a dropdown.

Is there a reason that you are setting up zipcode as it’s own model instead of using a CharField or an actual zipcode modelfield?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)