IMGIITRoorkee / omniport-backend-formula-one

The backend blocks of Omniport, expressed as a collection of frequently-used classes and functions
GNU General Public License v3.0
9 stars 2 forks source link

Add Student model to `large_models` array #4

Closed shreyansh23 closed 4 years ago

shreyansh23 commented 4 years ago

Admin add/edit view of models of having foreign key to Student fails to open student count when goes near 7-8k. Adding Student to large_models array to have similar fix as that of User and Person model.

dhruvkb commented 4 years ago

Makes sense. Are there any other models with such large numbers?

shreyansh23 commented 4 years ago

Makes sense. Are there any other models with such large numbers?

Presently, FacultyMember count goes to 1k. No problem with that as of now but it would be better to have similar fix for that model as well. Apart from that, Candidate model face similar problem. The same problem existed in old channeli as well. But for Candidate model, it would be better to handle this on app level admin.py using raw_id_field for candidate field.

dhruvkb commented 4 years ago

Add FacultyMember to the list and update the PR.

ayushjn20 commented 4 years ago

Nice work!