[Answered ]-MemoryError at … No exception message supplied

1👍

For raw_id_fields please refer to Django’s Admin raw_id_fields

For writing your custom lazy loading ModelChoiceField please refer to Django Custom Widgets

👤kia

1👍

I know it is not the answer to the question but it can help to clarify the type of situation that can give this error, at least it would have helped me.

I got MemoryError when using django rest framework becuase I had a foreign key to a table with 2000000+ items in it and the web browsable API wanted to add all the items to the drop down.

👤Jon

Leave a comment