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
- [Answered ]-Simple Math in Django template
- [Answered ]-Django admin – add custom link to change list view
- [Answered ]-Dynamically import url in Django gives 'str' object is not callable
- [Answered ]-Getting certain values to appear in django form
- [Answered ]-Django css setup not working
Source:stackexchange.com